Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for helper (0.15 sec)

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

        MoreObjects.ToStringHelper helper =
            MoreObjects.toStringHelper(new TestClass())
                .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());
    
    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)
  2. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        MoreObjects.ToStringHelper helper =
            MoreObjects.toStringHelper(new TestClass())
                .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());
    
    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)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

        expected[119] = 1048576;
        expected[120] = 458752;
        expected[121] = 524288;
        expected[122] = 65536;
        // Anything not assigned was the default 0.
        return expected;
      }
    
      /**
       * Helper to run the loop to test all the permutations for the number of bytes specified.
       *
       * @param numBytes the number of bytes in the byte array
       * @param expectedCount the expected number of roundtrippable permutations
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.StrongKeyWeakValueEntry.Helper.class);
      }
    
      private static void checkStrength(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

            .isInstanceOf(MapMakerInternalMap.WeakKeyStrongValueEntry.Helper.class);
      }
    
      public void testSetWeakValues() {
        MapMakerInternalMap<Object, Object, ?, ?> map = makeMap(createMapMaker().weakValues());
        checkStrength(map, Strength.STRONG, Strength.WEAK);
        assertThat(map.entryHelper)
            .isInstanceOf(MapMakerInternalMap.StrongKeyWeakValueEntry.Helper.class);
      }
    
      private static void checkStrength(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/MoreObjects.java

         * again and get a more complete representation of the same object; but properties cannot be
         * removed, so this only allows limited reuse of the helper instance. The helper allows
         * duplication of properties (multiple name/value pairs with the same name can be added).
         */
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.TimeoutException;
    import junit.framework.AssertionFailedError;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A helper for concurrency testing. One or more {@code TestThread} instances are instantiated in a
     * test with reference to the same "lock-like object", and then their interactions with that object
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathTesting.java

          ImmutableList.of(0, 1, 2, 3, 4, 7, 10, 15, 20, 25, 40, 70);
    
      /* Helper function to make a Long value from an Integer. */
      private static final Function<Integer, Long> TO_LONG =
          new Function<Integer, Long>() {
            @Override
            public Long apply(Integer n) {
              return Long.valueOf(n);
            }
          };
    
      /* Helper function to make a BigInteger value from a Long. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/MathTesting.java

          ImmutableList.of(0, 1, 2, 3, 4, 7, 10, 15, 20, 25, 40, 70);
    
      /* Helper function to make a Long value from an Integer. */
      private static final Function<Integer, Long> TO_LONG =
          new Function<Integer, Long>() {
            @Override
            public Long apply(Integer n) {
              return Long.valueOf(n);
            }
          };
    
      /* Helper function to make a BigInteger value from a Long. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/MoreObjects.java

         * again and get a more complete representation of the same object; but properties cannot be
         * removed, so this only allows limited reuse of the helper instance. The helper allows
         * duplication of properties (multiple name/value pairs with the same name can be added).
         */
        @Override
        public String toString() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top