Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for sull (0.15 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

        }
      }
    
      /*
       * Preconditions.checkNotNull is *intended* for performing eager null checks on parameters that a
       * nullness checker can already "prove" are non-null. That means that the first parameter to
       * checkNotNull *should* be annotated to require it to be non-null.
       *
       * However, for a variety of reasons, Google developers have written a ton of code over the past
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        List<@Nullable String> list = newArrayList("a", null, "b", null, "a", null);
        assertEquals(2, Iterators.frequency(list.iterator(), "a"));
        assertEquals(1, Iterators.frequency(list.iterator(), "b"));
        assertEquals(0, Iterators.frequency(list.iterator(), "c"));
        assertEquals(0, Iterators.frequency(list.iterator(), 4.2));
        assertEquals(3, Iterators.frequency(list.iterator(), null));
      }
    
      @GwtIncompatible // slow (~4s)
    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)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        TreeSet<Integer> set = Sets.newTreeSet(SOME_COLLECTION);
        verifySortedSetContents(set, SOME_COLLECTION, null);
      }
    
      public void testNewTreeSetFromIterable() {
        TreeSet<Integer> set = Sets.newTreeSet(SOME_ITERABLE);
        verifySortedSetContents(set, SOME_ITERABLE, null);
      }
    
      public void testNewTreeSetFromIterableDerived() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       *
       * @throws NullPointerException if any key or value in {@code map} is null
       */
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
        Comparator<? super K> comparator = map.comparator();
        if (comparator == null) {
          // If map has a null comparator, the keys should have a natural ordering,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        WeakReference<Object> ref = new WeakReference<>(null);
        int expectedComputations = 0;
        for (int i = 0; i < iterations; i++) {
          // The entry should get garbage collected and recomputed.
          Object oldValue = ref.get();
          if (oldValue == null) {
            expectedComputations++;
          }
          ref = new WeakReference<>(cache.getUnchecked(1));
          oldValue = null;
          Thread.sleep(i);
          System.gc();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        node.thread = null; // mark as 'deleted'
        restart:
        while (true) {
          Waiter pred = null;
          Waiter curr = waiters;
          if (curr == Waiter.TOMBSTONE) {
            return; // give up if someone is calling complete
          }
          Waiter succ;
          while (curr != null) {
            succ = curr.next;
            if (curr.thread != null) { // we aren't unlinking this node, update pred.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            Collection<V> collection = super.get(key);
            return (collection == null) ? null : typePreservingCollection(collection, mutex);
          }
        }
    
        @Override
        public Set<Map.Entry<K, Collection<V>>> entrySet() {
          synchronized (mutex) {
            if (asMapEntrySet == null) {
              asMapEntrySet = new SynchronizedAsMapEntries<>(delegate().entrySet(), mutex);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

        Entry<@Nullable String, @Nullable Integer> e =
            Maps.immutableEntry((String) null, (Integer) null);
        assertNull(e.getKey());
        assertNull(e.getValue());
        try {
          e.setValue(null);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        assertEquals("null=null", e.toString());
        assertEquals(0, e.hashCode());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        Entry<@Nullable String, @Nullable Integer> e =
            Maps.immutableEntry((String) null, (Integer) null);
        assertNull(e.getKey());
        assertNull(e.getValue());
        try {
          e.setValue(null);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        assertEquals("null=null", e.toString());
        assertEquals(0, e.hashCode());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedMap.java

       *
       * @throws NullPointerException if any key or value in {@code map} is null
       */
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSortedMap<K, V> copyOfSorted(SortedMap<K, ? extends V> map) {
        Comparator<? super K> comparator = map.comparator();
        if (comparator == null) {
          // If map has a null comparator, the keys should have a natural ordering,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top