Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for hasPrevious (0.12 sec)

  1. guava/src/com/google/common/collect/LinkedListMultimap.java

            next = current.next;
          }
          removeNode(current);
          current = null;
          expectedModCount = modCount;
        }
    
        @Override
        public boolean hasPrevious() {
          checkForConcurrentModification();
          return previous != null;
        }
    
        @CanIgnoreReturnValue
        @Override
        public Node<K, V> previous() {
          checkForConcurrentModification();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  2. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java

        public XmlNode getChild(String name) {
            if (name != null) {
                ListIterator<XmlNode> it = children.listIterator(children.size());
                while (it.hasPrevious()) {
                    XmlNode child = it.previous();
                    if (name.equals(child.getName())) {
                        return child;
                    }
                }
            }
            return null;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/ImmutableCollections.java

                }
    
                @Override
                public E next() {
                    return get(index++);
                }
    
                @Override
                public boolean hasPrevious() {
                    return index > 0;
                }
    
                @Override
                public E previous() {
                    return get(--index);
                }
    
                @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
        assertEquals("2", iterator.previous());
        assertTrue(iterator.hasPrevious());
        assertEquals("1", iterator.previous());
        assertFalse(iterator.hasPrevious());
        assertEquals(-1, iterator.previousIndex());
        try {
          iterator.previous();
          fail("did not detect beginning of list");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals("4", iterator.previous());
        assertEquals("3", iterator.previous());
        assertEquals("2", iterator.previous());
        assertTrue(iterator.hasPrevious());
        assertEquals("1", iterator.previous());
        assertFalse(iterator.hasPrevious());
        assertEquals(-1, iterator.previousIndex());
        try {
          iterator.previous();
          fail("did not detect beginning of list");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy

            given:
            list.addAll(['a', 'b', 'c'])
    
            expect:
            def iter = list.listIterator(1)
            iter.hasNext()
            iter.hasPrevious()
            iter.next() == 'b'
            iter.hasNext()
            iter.next() == 'c'
            !iter.hasNext()
        }
    
        def "can get sublist of elements"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 13K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            ListIterator<T> listIter = list.listIterator(list.size());
            return new Iterator<T>() {
              @Override
              public boolean hasNext() {
                return listIter.hasPrevious();
              }
    
              @Override
              public T next() {
                return listIter.previous();
              }
    
              @Override
              public void remove() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            ListIterator<T> listIter = list.listIterator(list.size());
            return new Iterator<T>() {
              @Override
              public boolean hasNext() {
                return listIter.hasPrevious();
              }
    
              @Override
              public T next() {
                return listIter.previous();
              }
    
              @Override
              public void remove() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          }
    
          private ListIterator<V> getDelegateListIterator() {
            return (ListIterator<V>) getDelegateIterator();
          }
    
          @Override
          public boolean hasPrevious() {
            return getDelegateListIterator().hasPrevious();
          }
    
          @Override
          @ParametricNullness
          public V previous() {
            return getDelegateListIterator().previous();
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          }
    
          private ListIterator<V> getDelegateListIterator() {
            return (ListIterator<V>) getDelegateIterator();
          }
    
          @Override
          public boolean hasPrevious() {
            return getDelegateListIterator().hasPrevious();
          }
    
          @Override
          @ParametricNullness
          public V previous() {
            return getDelegateListIterator().previous();
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 48K bytes
    - Viewed (0)
Back to top