Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,288 for null (0.16 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/LinkedListMultimap.java

          int size = (keyList == null) ? 0 : keyList.count;
          checkPositionIndex(index, size);
          if (index >= (size / 2)) {
            previous = (keyList == null) ? null : keyList.tail;
            nextIndex = size;
            while (index++ < size) {
              previous();
            }
          } else {
            next = (keyList == null) ? null : keyList.head;
            while (index-- > 0) {
              next();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java

      @CollectionFeature.Require({SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      public void testOffer_nullSupported() {
        assertTrue("offer(null) should return true", getQueue().offer(null));
        expectAdded((E) null);
      }
    
      @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
      public void testOffer_nullUnsupported() {
        try {
          getQueue().offer(null);
          fail("offer(null) should throw");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          do {
            stack = head;
            if (stack == null) {
              // If head == null then execute() has been called so we should just return
              return;
            }
            // try to swap null into head.
          } while (!UNSAFE.compareAndSwapObject(this, HEAD_OFFSET, stack, null));
    
          RunnableExecutorPair reversedStack = null;
          while (stack != NULL_PAIR) {
            RunnableExecutorPair head = stack;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

          return;
        }
    
        map.put(null, unmappedValue);
        assertEquals(unmappedValue, map.get(null));
        assertTrue(map.containsKey(null));
        Entry<@Nullable K, V> entry = mapEntry(null, unmappedValue);
        assertTrue(entrySet.remove(entry));
        assertNull(map.get(null));
        assertFalse(map.containsKey(null));
      }
    
      public void testEntrySetRemoveNullKeyMissing() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheBuilderSpec.java

        if (initialCapacity != null) {
          builder.initialCapacity(initialCapacity);
        }
        if (maximumSize != null) {
          builder.maximumSize(maximumSize);
        }
        if (maximumWeight != null) {
          builder.maximumWeight(maximumWeight);
        }
        if (concurrencyLevel != null) {
          builder.concurrencyLevel(concurrencyLevel);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java

      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUE_QUERIES)
      public void testContains_nullNotContainedButAllowed() {
        assertFalse("containsValue(null) should return false", getMap().containsValue(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testContains_nullNotContainedAndUnsupported() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          cachingHashMap.remove(key);
          return null;
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public V put(K key, V value) {
        checkNotNull(key);
        checkNotNull(value);
        Timestamped<V> oldValue = cachingHashMap.put(key, new Timestamped<V>(value, ticker));
        if (oldValue == null) {
          return null;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. 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)
  10. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentNullToNull() {
        // The spec is somewhat ambiguous about this case, but the actual default implementation
        // in Map will remove a present null.
        initMapWithNullValue();
        assertNull(
            "Map.compute(presentMappedToNull, functionReturningNull) should return null",
            getMap()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.8K bytes
    - Viewed (0)
Back to top