Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for helmet (0.24 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

          throws Exception {
        // Make sure we are actually running with the expected helper implementation
        Class<?> abstractFutureClass = classLoader.loadClass(AbstractFuture.class.getName());
        Field helperField = abstractFutureClass.getDeclaredField("ATOMIC_HELPER");
        helperField.setAccessible(true);
        assertEquals(expectedHelperClassName, helperField.get(null).getClass().getSimpleName());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestStringSortedMapGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.SortedMap;
    
    /**
     * Implementation helper for {@link TestMapGenerator} for use with sorted maps of strings.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

    import java.io.IOException;
    import java.io.Writer;
    
    /**
     * Unit test for {@link AppendableWriter}.
     *
     * @author Alan Green
     */
    public class AppendableWriterTest extends IoTestCase {
    
      /** Helper class for testing behavior with Flushable and Closeable targets. */
      private static class SpyAppendable implements Appendable, Flushable, Closeable {
        boolean flushed;
        boolean closed;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  4. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 07 19:01:53 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/escape/CharEscaper.java

          }
          s.getChars(lastEscape, slen, dest, destIndex);
          destIndex = sizeNeeded;
        }
        return new String(dest, 0, destIndex);
      }
    
      /**
       * Helper method to grow the character buffer as needed, this only happens once in a while so it's
       * ok if it's in a method call. If the index passed in is 0 then no copying will be done.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

         * unable to do so.
         */
        static GetCheckedTypeValidator getBestValidator() {
          return weakSetValidator();
        }
      }
    
      // TODO(cpovirk): change parameter order to match other helper methods (Class, Throwable)?
      private static <X extends Exception> void wrapAndThrowExceptionOrError(
          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/Escapers.java

        return stringOrNull(escaper.escape(cp));
      }
    
      @CheckForNull
      private static String stringOrNull(@CheckForNull char[] in) {
        return (in == null) ? null : new String(in);
      }
    
      /** Private helper to wrap a CharEscaper as a UnicodeEscaper. */
      private static UnicodeEscaper wrap(CharEscaper escaper) {
        return new UnicodeEscaper() {
          @Override
          @CheckForNull
          protected char[] escape(int cp) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LongMathTest.java

          }
        }
      }
    
      /** Helper method that asserts the arithmetic mean of x and y is equal to the expectedMean. */
      private static void assertMean(long expectedMean, long x, long y) {
        assertEquals(
            "The expectedMean should be the same as computeMeanSafely",
            expectedMean,
            computeMeanSafely(x, y));
        assertMean(x, y);
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

            },
            (Multiset<E> multiset) -> copyOfSortedEntries(comparator, multiset.entrySet()));
      }
    
      @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
      @IgnoreJRERequirement // helper for toImmutableSortedMultiset
      /*
       * If we make these calls inline inside toImmutableSortedMultiset, we get an Animal Sniffer error,
       * despite the @IgnoreJRERequirement annotation there. My assumption is that, because javac
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

          void addEntries(MoreObjects.ToStringHelper helper) {
            helper
                .add(SHORT_NAME, 10)
                .addValue(10L)
                .add(SHORT_NAME, 3.14f)
                .addValue(3.14d)
                .add(LONG_NAME, false)
                .add(LONG_NAME, LONG_NAME);
          }
        },
        CONDITIONAL {
          void addEntries(MoreObjects.ToStringHelper helper) {
            helper
                .add(SHORT_NAME, "x")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 14 22:05:11 GMT 2021
    - 4.3K bytes
    - Viewed (0)
Back to top