Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 480 for empty (0.94 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

    import junit.framework.TestCase;
    
    /**
     * {@link LoadingCache} tests that deal with empty caches.
     *
     * @author mike nonemacher
     */
    
    public class EmptyCachesTest extends TestCase {
    
      public void testEmpty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/ToStringHelperTest.java

        Object[] objects = {"obj"};
        String[] arrayWithNull = {null};
        Object[] empty = {};
        String toTest =
            MoreObjects.toStringHelper("TSH")
                .add("strings", strings)
                .add("ints", ints)
                .add("objects", objects)
                .add("arrayWithNull", arrayWithNull)
                .add("empty", empty)
                .toString();
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        String[] array = new String[] {null};
        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(array));
      }
    
      public void testCopyOf_collection_empty() {
        // "<String>" is required to work around a javac 1.5 bug.
        Collection<String> c = MinimalCollection.<String>of();
        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsTest.java

    import static com.google.common.math.StatsTesting.ALL_MANY_VALUES;
    import static com.google.common.math.StatsTesting.ALL_STATS;
    import static com.google.common.math.StatsTesting.EMPTY_STATS_ITERABLE;
    import static com.google.common.math.StatsTesting.EMPTY_STATS_VARARGS;
    import static com.google.common.math.StatsTesting.INTEGER_MANY_VALUES;
    import static com.google.common.math.StatsTesting.INTEGER_MANY_VALUES_COUNT;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals("foo", Iterators.getOnlyElement(iterator, "bar"));
      }
    
      public void testGetOnlyElement_withDefault_empty() {
        Iterator<String> iterator = Iterators.emptyIterator();
        assertEquals("bar", Iterators.getOnlyElement(iterator, "bar"));
      }
    
      public void testGetOnlyElement_withDefault_empty_null() {
        Iterator<String> iterator = Iterators.emptyIterator();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  8. 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)
  9. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/IntsMethodsForWeb.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Holder for web specializations of methods of {@code Ints}. Intended to be empty for regular
     * version.
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 904 bytes
    - Viewed (0)
Back to top