test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/query/ResultIteratorTest.java
test_class.identifier: ResultIteratorTest
test_case.body: @Test
      public void testCreateWithoutLimitation() {
          Iterator<String> it = ImmutableList.of("str").iterator();
          assertSame(it, ResultIterator.create(ResultIterator.OFFSET_NONE, ResultIterator.MAX_ALL, it));
      }
test_case.class_method_signature: ResultIteratorTest.testCreateWithoutLimitation()
test_case.full_signature: @Test public void testCreateWithoutLimitation()
test_case.identifier: testCreateWithoutLimitation
test_case.invocations: iterator of assertSame create
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateWithoutLimitation()
focal_class.declarator: OFFSET_NONE = 0
focal_class.modifier: public static final
focal_class.original_string: public static final int OFFSET_NONE = 0;
focal_class.type: int
focal_class.var_name: OFFSET_NONE
focal_class.declarator: MAX_ALL = -1
focal_class.modifier: public static final
focal_class.original_string: public static final int MAX_ALL = -1;
focal_class.type: int
focal_class.var_name: MAX_ALL
focal_class.declarator: iterator
focal_class.modifier: private final
focal_class.original_string: private final Iterator<T> iterator;
focal_class.type: Iterator<T>
focal_class.var_name: iterator
focal_class.declarator: offset
focal_class.modifier: private final
focal_class.original_string: private final long offset;
focal_class.type: long
focal_class.var_name: offset
focal_class.declarator: max
focal_class.modifier: private final
focal_class.original_string: private final long max;
focal_class.type: long
focal_class.var_name: max
focal_class.declarator: pos
focal_class.modifier: private
focal_class.original_string: private int pos;
focal_class.type: int
focal_class.var_name: pos
focal_class.declarator: next
focal_class.modifier: private
focal_class.original_string: private T next;
focal_class.type: T
focal_class.var_name: next
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/user/query/ResultIterator.java
focal_class.identifier: ResultIterator
focal_class.interfaces: implements Iterator<T>
focal_class.class_method_signature: ResultIterator.ResultIterator(long offset, long max, Iterator<T> iterator)
focal_class.full_signature: private  ResultIterator(long offset, long max, Iterator<T> iterator)
focal_class.identifier: ResultIterator
focal_class.modifiers: private
focal_class.parameters: (long offset, long max, Iterator<T> iterator)
focal_class.signature:  ResultIterator(long offset, long max, Iterator<T> iterator)
focal_class.class_method_signature: ResultIterator.create(long offset, long max, Iterator<T> iterator)
focal_class.full_signature: public static Iterator<T> create(long offset, long max, Iterator<T> iterator)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (long offset, long max, Iterator<T> iterator)
focal_class.return: Iterator<T>
focal_class.signature: Iterator<T> create(long offset, long max, Iterator<T> iterator)
focal_class.class_method_signature: ResultIterator.hasNext()
focal_class.full_signature: @Override public boolean hasNext()
focal_class.identifier: hasNext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasNext()
focal_class.class_method_signature: ResultIterator.next()
focal_class.full_signature: @Override public T next()
focal_class.identifier: next
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T next()
focal_class.class_method_signature: ResultIterator.remove()
focal_class.full_signature: @Override public void remove()
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void remove()
focal_class.class_method_signature: ResultIterator.fetchNext()
focal_class.full_signature: private void fetchNext()
focal_class.identifier: fetchNext
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fetchNext()
focal_class.class_method_signature: ResultIterator.consumeNext()
focal_class.full_signature: private T consumeNext()
focal_class.identifier: consumeNext
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T consumeNext()
focal_method.body: public static <T> Iterator<T> create(long offset, long max, Iterator<T> iterator) {
          if (offset == OFFSET_NONE && max == MAX_ALL) {
              // no constraints on offset nor max -> return the original iterator.
              return iterator;
          } else {
              return new ResultIterator<>(offset, max, iterator);
          }
      }
focal_method.class_method_signature: ResultIterator.create(long offset, long max, Iterator<T> iterator)
focal_method.full_signature: public static Iterator<T> create(long offset, long max, Iterator<T> iterator)
focal_method.identifier: create
focal_method.modifiers: public static
focal_method.parameters: (long offset, long max, Iterator<T> iterator)
focal_method.return: Iterator<T>
focal_method.signature: Iterator<T> create(long offset, long max, Iterator<T> iterator)