Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,031 for value1 (0.21 sec)

  1. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        checkNotNull(value2);
        checkArgument(!Objects.equal(value1, value2), "Duplicate value provided.");
        distinctValues.replaceValues(type, ImmutableList.of(value1, value2));
        setDefault(type, value1);
        return this;
      }
    
      /**
       * Tests that {@code cls} properly checks null on all constructor and method parameters that
       * aren't annotated nullable (according to the rules of {@link NullPointerTester}). In details:
       *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /**
       * Sets two distinct values for {@code type}. These values can be used for both null pointer
       * testing and equals testing.
       *
       * @since 17.0
       */
      protected final <T> void setDistinctValues(Class<T> type, T value1, T value2) {
        tester.setDistinctValues(type, value1, value2);
      }
    
      /** Specifies that classes that satisfy the given predicate aren't tested for sanity. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                    ClosingFuture.from(immediateFuture("value2")),
                    ClosingFuture.from(immediateFuture("value3")),
                    ClosingFuture.from(immediateFuture("value4")),
                    ClosingFuture.from(immediateFuture("value5")))
                .call(
                    new ClosingFunction5<
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field1", 1)
                .addValue("value1")
                .add("field2", "value2");
        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
    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)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                    ClosingFuture.from(immediateFuture("value2")),
                    ClosingFuture.from(immediateFuture("value3")),
                    ClosingFuture.from(immediateFuture("value4")),
                    ClosingFuture.from(immediateFuture("value5")))
                .call(
                    new ClosingFunction5<
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field1", 1)
                .addValue("value1")
                .add("field2", "value2");
        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

          }
        };
      }
    
      private static <T> ImmutableMultiset<T> multiset(T value, int count) {
        return multiset(ImmutableMap.of(value, count));
      }
    
      private static <T> ImmutableMultiset<T> multiset(T value1, int count1, T value2, int count2) {
        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        checkNotNull(value2);
        checkArgument(!Objects.equal(value1, value2), "Duplicate value provided.");
        distinctValues.replaceValues(type, ImmutableList.of(value1, value2));
        setDefault(type, value1);
        return this;
      }
    
      /**
       * Tests that {@code cls} properly checks null on all constructor and method parameters that
       * aren't annotated nullable (according to the rules of {@link NullPointerTester}). In details:
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          Key key1 = new Key(1);
          String value1 = key1.toString();
          Key key2 = new Key(2);
          String value2 = key2.toString();
          assertSame(value1, cache.getUnchecked(key1));
          assertSame(value2, cache.getUnchecked(key2));
          assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).containsExactly(value1, value2);
          assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
Back to top