Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for empty (0.18 sec)

  1. android/guava/src/com/google/common/collect/SortedMultiset.java

      /**
       * Returns the entry of the first element in this multiset, or {@code null} if this multiset is
       * empty.
       */
      @CheckForNull
      Entry<E> firstEntry();
    
      /**
       * Returns the entry of the last element in this multiset, or {@code null} if this multiset is
       * empty.
       */
      @CheckForNull
      Entry<E> lastEntry();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Runnables.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class Runnables {
    
      private static final Runnable EMPTY_RUNNABLE =
          new Runnable() {
            @Override
            public void run() {}
          };
    
      /** Returns a {@link Runnable} instance that does nothing when run. */
      public static Runnable doNothing() {
        return EMPTY_RUNNABLE;
      }
    
      private Runnables() {}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

      static final RegularImmutableBiMap<Object, Object> EMPTY =
          new RegularImmutableBiMap<Object, Object>();
    
      // This reference is used both by the GWT compiler to infer the elements
      // of the lists that needs to be serialized.
      private ImmutableBiMap<V, K> inverse;
    
      @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
      RegularImmutableBiMap() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

        // occur in practice.
        if (safeMin >= Character.MIN_HIGH_SURROGATE) {
          // The safe range is empty or the all safe code points lie in or above the
          // surrogate range. Either way the character range is empty.
          this.safeMinChar = Character.MAX_VALUE;
          this.safeMaxChar = 0;
        } else {
          // The safe range is non-empty and contains values below the surrogate
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SetMultimap.java

       * <p>Two {@code SetMultimap} instances are equal if, for each key, they contain the same values.
       * Equality does not depend on the ordering of keys or values.
       *
       * <p>An empty {@code SetMultimap} is equal to any other empty {@code Multimap}, including an
       * empty {@code ListMultimap}.
       */
      @Override
      boolean equals(@CheckForNull Object obj);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class CollectionContainsAllTester<E> extends AbstractCollectionTester<E> {
      public void testContainsAll_empty() {
        assertTrue(
            "containsAll(empty) should return true", collection.containsAll(MinimalCollection.of()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAll_subset() {
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/HashBasedTable.java

        }
    
        private static final long serialVersionUID = 0;
      }
    
      /** Creates an empty {@code HashBasedTable}. */
      public static <R, C, V> HashBasedTable<R, C, V> create() {
        return new HashBasedTable<>(new LinkedHashMap<R, Map<C, V>>(), new Factory<C, V>(0));
      }
    
      /**
       * Creates an empty {@code HashBasedTable} with the specified map sizes.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/SmallCharMatcher.java

        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
          // Compute the filter at the same time.
          filter |= 1L << c;
          int index = smear(c) & mask;
          while (true) {
            // Check for empty.
            if (table[index] == 0) {
              table[index] = (char) c;
              break;
            }
            // Linear probing.
            index = (index + 1) & mask;
          }
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
          EnumMultiset.create(empty);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCreateEmptyWithClass() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

        }
      }
    
      // Following Javadoc copied from Multimap and SortedSetMultimap.
    
      /**
       * Returns a collection view of all values associated with a key. If no mappings in the multimap
       * have the provided key, an empty collection is returned.
       *
       * <p>Changes to the returned collection will update the underlying multimap, and vice versa.
       *
       * <p>Because a {@code SortedSetMultimap} has unique sorted values for a given key, this method
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
Back to top