Examples of IntegerRange


Examples of org.apache.tapestry5.internal.util.IntegerRange

                        break;

                    int from = Integer.parseInt(fromNode.getText());
                    int to = Integer.parseInt(toNode.getText());

                    IntegerRange ir = new IntegerRange(from, to);

                    return createLiteralConduit(IntegerRange.class, ir);

                case THIS:
View Full Code Here

Examples of org.eclipse.xtext.xbase.lib.IntegerRange

      IParseResult _parseResult_1 = res.getParseResult();
      ICompositeNode _rootNode_1 = _parseResult_1.getRootNode();
      Iterable<ILeafNode> _leafNodes = _rootNode_1.getLeafNodes();
      final List<ILeafNode> list = IterableExtensions.<ILeafNode>toList(_leafNodes);
      final int index = list.indexOf(start);
      IntegerRange _upTo = new IntegerRange(index, 0);
      final Function1<Integer, Boolean> _function = new Function1<Integer, Boolean>() {
        public Boolean apply(final Integer it) {
          ILeafNode _get = list.get((it).intValue());
          boolean _isHidden = _get.isHidden();
          return Boolean.valueOf((!_isHidden));
        }
      };
      final Integer first = IterableExtensions.<Integer>findFirst(_upTo, _function);
      int _size = list.size();
      int _minus = (_size - 1);
      IntegerRange _upTo_1 = new IntegerRange(index, _minus);
      final Function1<Integer, Boolean> _function_1 = new Function1<Integer, Boolean>() {
        public Boolean apply(final Integer it) {
          ILeafNode _get = list.get((it).intValue());
          boolean _isHidden = _get.isHidden();
          return Boolean.valueOf((!_isHidden));
View Full Code Here

Examples of org.pdf4j.saxon.value.IntegerRange

     *
     * @return the corresponding Value
     */

    public GroundedValue materialize() throws XPathException {
        return new IntegerRange(start, limit);
    }
View Full Code Here

Examples of toxi.util.datatypes.IntegerRange

            prev = val;
        }
    }

    public void testShuffle() {
        Integer[] range = new IntegerRange(0, 10).toArray();
        dumpArray(range);
        ArrayUtil.shuffle(range, new Random(23));
        dumpArray(range);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.