Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 996 for nulla (0.13 sec)

  1. android/guava-tests/test/com/google/common/base/JoinerTest.java

      private static final Iterable<@Nullable Integer> ITERABLE_NULL = Arrays.asList((Integer) null);
      private static final Iterable<@Nullable Integer> ITERABLE_NULL_NULL =
          Arrays.asList((Integer) null, null);
      private static final Iterable<@Nullable Integer> ITERABLE_NULL_1 = Arrays.asList(null, 1);
      private static final Iterable<@Nullable Integer> ITERABLE_1_NULL = Arrays.asList(1, null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableList.java

           * we're copying into a `contents` array whose type allows it to contain nulls. Still, it's
           * worth noting that we promise not to put nulls into the array in the first `size` elements.
           * We uphold that promise here because our callers promise that `elements` will not contain
           * nulls in its first `n` elements.
           */
          System.arraycopy(elements, 0, contents, size, n);
          size += n;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/collect/ListsImplTest.java

        int[] expected = {0, 1, 2, 1, 4, 5, 0};
        checkIndexOf(toTest, expected);
      }
    
      public void testIndexOfImpl_null() {
        List<String> toTest;
        try {
          toTest = createList(String.class, null, "A", "B", null, "C", null);
        } catch (NullPointerException e) {
          // example cannot handle nulls, test invalid
          return;
        }
        int[] expected = {0, 1, 2, 0, 4, 0};
        checkIndexOf(toTest, expected);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<@Nullable Integer> isNull = Predicates.equalTo(null);
        assertTrue(isNull.apply(null));
        assertFalse(isNull.apply(1));
      }
    
      public void testIsEqualToNull_equality() {
        new EqualsTester()
            .addEqualityGroup(
                Predicates.<@Nullable Integer>equalTo(null),
                Predicates.<@Nullable Integer>equalTo(null))
            .addEqualityGroup(Predicates.equalTo(1))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

        if (entry == null) {
          return null;
        } else {
          delete(entry);
          entry.prevInKeyInsertionOrder = null;
          entry.nextInKeyInsertionOrder = null;
          return entry.value;
        }
      }
    
      @Override
      public void clear() {
        size = 0;
        Arrays.fill(hashTableKToV, null);
        Arrays.fill(hashTableVToK, null);
        firstInKeyInsertionOrder = null;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

                      }
                    })
                .named("Sets.filter, no nulls")
                .withFeatures(
                    CollectionFeature.SUPPORTS_ADD,
                    CollectionFeature.SUPPORTS_REMOVE,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
        suite.addTest(
    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)
  9. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

            TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR);
        multimap.put("google", 2);
        multimap.put("google", 6);
        multimap.put(null, 3);
        multimap.put(null, 1);
        multimap.put(null, 7);
        multimap.put("tree", 0);
        multimap.put("tree", null);
        return multimap;
      }
    
      /** Test that a TreeMultimap created from another uses the natural ordering. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultiset.java

            current.elemCount = 0;
            // Also clear these fields so that one deleted Entry doesn't retain all elements.
            current.left = null;
            current.right = null;
            current.pred = null;
            current.succ = null;
    
            current = next;
          }
          successor(header, header);
          rootReference.clear();
        } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
Back to top