Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 94 for Bolder (0.17 sec)

  1. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        }
    
        @Override
        public int compareTo(CountsHashCodeAndEquals o) {
          onCompareTo.run();
          return delegateString.compareTo(o.delegateString);
        }
      }
    
      /** A holder of counters for calls to hashCode, equals, and compareTo. */
      private static final class CallsCounter {
        long hashCode;
        long equals;
        long compareTo;
    
        long total() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        class Holder {
    
          int value = 2;
        }
        final Holder holder = new Holder();
    
        // This function adds the holder's value to the input value.
        Function<Integer, Integer> adder =
            new Function<Integer, Integer>() {
              @Override
              public Integer apply(Integer from) {
                return from + holder.value;
              }
            };
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/Striped64.java

       * contention. See above for explanation. This method suffers the usual non-modularity problems of
       * optimistic retry code, relying on rechecked sets of reads.
       *
       * @param x the value
       * @param hc the hash code holder
       * @param wasUncontended false if CAS failed before call
       */
      final void retryUpdate(long x, @CheckForNull int[] hc, boolean wasUncontended) {
        int h;
        if (hc == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Optional.java

       *
       * @since 21.0
       */
      public java.util.Optional<T> toJavaUtil() {
        return java.util.Optional.ofNullable(orNull());
      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       */
    
      /** The number of occurrences of each element. */
      private final transient ConcurrentMap<E, AtomicInteger> countMap;
    
      // This constant allows the deserialization code to set a final field. This holder class
      // makes sure it is not initialized unless an instance is deserialized.
      private static class FieldSettersHolder {
        static final FieldSetter<? super ConcurrentHashMultiset<?>> COUNT_MAP_FIELD_SETTER =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void checkSameResult(HashCode hashCode, long equivLong) {
        assertEquals(Hashing.consistentHash(equivLong, 5555), Hashing.consistentHash(hashCode, 5555));
      }
    
      /**
       * Check a few "golden" values to see that implementations across languages are equivalent.
       *
       */
      public void testConsistentHash_linearCongruentialGeneratorCompatibility() {
        int[] golden100 = {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 26.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static class Holder<T> {
        List<T>[] matrix;
    
        void setList(List<T> list) {}
      }
    
      public void testWildcardCaptured_methodParameter_upperBound() throws Exception {
        TypeToken<Holder<?>> type = new TypeToken<Holder<?>>() {};
        ImmutableList<Parameter> parameters =
            type.method(Holder.class.getDeclaredMethod("setList", List.class)).getParameters();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ExtraObjectsMethodsForWeb.java

     * the License.
     */
    
    package com.google.common.base;
    
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Holder for extra methods of {@code Objects} only in web. */
    public abstract class ExtraObjectsMethodsForWeb {
      public static boolean equal(@Nullable String a, @Nullable String b) {
        return a == b;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 07 01:40:05 GMT 2023
    - 901 bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/StandardSystemProperty.java

       * <ul>
       *   <li>{@link #JAVA_EXT_DIRS} was deprecated in Java 8 and removed in Java 9. We have not
       *       confirmed whether it is available under older versions.
       *   <li>{@link #JAVA_COMPILER}, while still listed as required as of Java 15, is typically not
       *       available even under older version.
       *   <li>Any property may be cleared through APIs like {@link System#clearProperty}.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/IgnoreJRERequirement.java

    import static java.lang.annotation.ElementType.METHOD;
    import static java.lang.annotation.ElementType.TYPE;
    
    import java.lang.annotation.Target;
    
    /**
     * Disables Animal Sniffer's checking of compatibility with older versions of Java/Android.
     *
     * <p>Each package's copy of this annotation needs to be listed in our {@code pom.xml}.
     */
    @Target({METHOD, CONSTRUCTOR, TYPE})
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 17:03:50 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top