Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 314 for helper (0.26 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. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

          throws Exception {
        // Make sure we are actually running with the expected helper implementation
        Class<?> abstractFutureClass = classLoader.loadClass(AggregateFutureState.class.getName());
        Field helperField = abstractFutureClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
        assertEquals(expectedHelperClassName, helperField.get(null).getClass().getSimpleName());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

      private volatile int remaining;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      private static final LazyLogger log = new LazyLogger(AggregateFutureState.class);
    
      static {
        AtomicHelper helper;
        Throwable thrownReflectionFailure = null;
        try {
          helper =
              new SafeAtomicHelper(
                  newUpdater(AggregateFutureState.class, Set.class, "seenExceptions"),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      @Override
      public SampleElements<Entry<String, String>> samples() {
        return new SampleElements<>(
            Helpers.mapEntry("one", "January"),
            Helpers.mapEntry("two", "February"),
            Helpers.mapEntry("three", "March"),
            Helpers.mapEntry("four", "April"),
            Helpers.mapEntry("five", "May"));
      }
    
      @Override
      public final BiMap<String, String> create(Object... entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      private static final long SPIN_THRESHOLD_NANOS = 1000L;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      static {
        AtomicHelper helper;
        Throwable thrownUnsafeFailure = null;
        Throwable thrownAtomicReferenceFieldUpdaterFailure = null;
    
        try {
          helper = new UnsafeAtomicHelper();
        } catch (Exception | Error unsafeFailure) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        static final class Helper<K, V>
            implements InternalEntryHelper<
                K, V, StrongKeyStrongValueEntry<K, V>, StrongKeyStrongValueSegment<K, V>> {
          private static final Helper<?, ?> INSTANCE = new Helper<>();
    
          @SuppressWarnings("unchecked")
          static <K, V> Helper<K, V> instance() {
            return (Helper<K, V>) INSTANCE;
          }
    
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  8. 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)
  9. guava-testlib/src/com/google/common/testing/RelationshipTester.java

    import com.google.common.collect.Lists;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.List;
    import junit.framework.AssertionFailedError;
    
    /**
     * Implementation helper for {@link EqualsTester} and {@link EquivalenceTester} that tests for
     * equivalence classes.
     *
     * @author Gregory Kick
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class RelationshipTester<T> {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. guava-tests/pom.xml

            </configuration>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <version>1.7</version>
            <executions>
              <execution>
                <id>add-benchmark-sources</id>
                <phase>generate-test-sources</phase>
    XML
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Aug 07 19:01:53 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top