Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,258 for nulla (0.15 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

            "Should not contain null key after unsupported putAll(containsNullKey)");
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPutAll_nullValueSupported() {
        putAll(containsNullValue);
        expectAdded(containsNullValue.get(0));
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      public void testPutAll_nullValueUnsupported() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

        GraphConnections<N, V> connectionsV = nodeConnections.get(nodeV);
        if (connectionsU == null || connectionsV == null) {
          return null;
        }
    
        V previousValue = connectionsU.removeSuccessor(nodeV);
        if (previousValue != null) {
          connectionsV.removePredecessor(nodeU);
          checkNonNegative(--edgeCount);
        }
        return previousValue;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Oct 21 01:50:30 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  3. 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)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java

      }
    
      @CollectionFeature.Require(absent = ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullNotAllowed() {
        try {
          assertFalse(collection.containsAll(MinimalCollection.of((E) null)));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @CollectionFeature.Require(ALLOWS_NULL_QUERIES)
      public void testContainsAll_nullAllowed() {
    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)
  5. guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals((Character) 'b', table.get("bar", 1));
          assertNull(table.get("foo", 3));
          assertNull(table.remove(null, 1));
          assertNull(table.remove("foo", null));
          assertNull(table.remove(null, null));
          assertSize(2);
        } else {
          try {
            table.remove("foo", 3);
            fail();
          } catch (UnsupportedOperationException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testAddAllAtIndex_nullSupported() {
        List<E> containsNull = singletonList(null);
        assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull));
        /*
         * We need (E) to force interpretation of null as the single element of a
         * varargs array, not the array itself
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  7. android/guava-tests/test/com/google/common/base/VerifyTest.java

          checkMessage(expected);
        }
      }
    
      private static final String NON_NULL_STRING = "foo";
    
      public void testVerifyNotNull_simple_success() {
        String result = verifyNotNull(NON_NULL_STRING);
        assertSame(NON_NULL_STRING, result);
      }
    
      public void testVerifyNotNull_simple_failure() {
        try {
          verifyNotNull(null);
          fail();
        } catch (VerifyException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(4, 4, "valueD");
    
        assertThat(graph.edgeValueOrDefault(1, 2, null)).isEqualTo("valueA");
        assertThat(graph.edgeValueOrDefault(2, 1, null)).isEqualTo("valueB");
        assertThat(graph.edgeValueOrDefault(2, 3, null)).isEqualTo("valueC");
        assertThat(graph.edgeValueOrDefault(4, 4, null)).isEqualTo("valueD");
        assertThat(graph.edgeValueOrDefault(1, 2, DEFAULT)).isEqualTo("valueA");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testRetainAll_containsNonNullWithNull() {
        initCollectionWithNullElement();
        expectReturnsTrue(disjoint);
        expectContents();
      }
    
      // retainAll(null)
    
      /*
       * AbstractCollection fails the retainAll(null) test when the subject
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

       * the call to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullKeyMissingWhenNullKeysUnsupported(String message) {
        try {
          assertFalse(message, getMap().containsKey(null));
        } catch (NullPointerException tolerated) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
Back to top