Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for firstEntry (0.21 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(c, sortedMultiset.tailMultiset(b.getElement(), CLOSED).firstEntry());
        assertEquals(c, sortedMultiset.tailMultiset(c.getElement(), CLOSED).firstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testHigher() {
        resetWithHole();
        assertEquals(c, sortedMultiset.tailMultiset(a.getElement(), OPEN).firstEntry());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactLinkedHashMap.java

       */
      @CheckForNull @VisibleForTesting transient long[] links;
    
      /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int firstEntry;
    
      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      private final boolean accessOrder;
    
      CompactLinkedHashMap() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingNavigableMap.java

      }
    
      @Override
      @CheckForNull
      public Entry<K, V> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry} in terms of the {@code iterator()} of {@link
       * #entrySet}. If you override {@code entrySet}, you may wish to override {@code firstEntry} to
       * forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 14.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        }
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        }
      }
    
      @Override
      @CheckForNull
      public Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

        super.resetMap(entries);
        navigableMap = (NavigableMap<K, V>) getMap();
      }
    
      @CollectionSize.Require(ZERO)
      public void testEmptyMapFirst() {
        assertNull(navigableMap.firstEntry());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testEmptyMapPollFirst() {
        assertNull(navigableMap.pollFirstEntry());
      }
    
      @CollectionSize.Require(ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

      }
    
      @Override
      @CheckForNull
      public Entry<K, V> ceilingEntry(@ParametricNullness K key) {
        return tailMap(key, true).firstEntry();
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> higherEntry(@ParametricNullness K key) {
        return tailMap(key, false).firstEntry();
      }
    
      @Override
      @CheckForNull
      public K lowerKey(@ParametricNullness K key) {
        return Maps.keyOrNull(lowerEntry(key));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 15 18:11:44 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

       */
      @CheckForNull private transient int[] successor;
    
      /** Pointer to the first node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int firstEntry;
    
      /** Pointer to the last node in the linked list, or {@code ENDPOINT} if there are no entries. */
      private transient int lastEntry;
    
      CompactLinkedHashSet() {
        super();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedMultisets.java

        @CheckForNull
        public E ceiling(@ParametricNullness E e) {
          return getElementOrNull(multiset().tailMultiset(e, CLOSED).firstEntry());
        }
    
        @Override
        @CheckForNull
        public E higher(@ParametricNullness E e) {
          return getElementOrNull(multiset().tailMultiset(e, OPEN).firstEntry());
        }
    
        @Override
        public NavigableSet<E> descendingSet() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
        firstEntry = ENDPOINT;
        lastEntry = ENDPOINT;
        links = new long[expectedSize];
        Arrays.fill(links, UNSET);
      }
    
      @Override
      int firstIndex() {
        return (firstEntry == ENDPOINT) ? -1 : firstEntry;
      }
    
      @Override
      int nextIndex(int index) {
        int result = getSuccessor(index);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
Back to top