Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 767 for instance (0.2 sec)

  1. android/guava/src/com/google/common/hash/Funnels.java

      private Funnels() {}
    
      /** Returns a funnel that extracts the bytes from a {@code byte} array. */
      public static Funnel<byte[]> byteArrayFunnel() {
        return ByteArrayFunnel.INSTANCE;
      }
    
      private enum ByteArrayFunnel implements Funnel<byte[]> {
        INSTANCE;
    
        @Override
        public void funnel(byte[] from, PrimitiveSink into) {
          into.putBytes(from);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

       * this parameter is marked nullable, this method does nothing.
       *
       * @param instance the instance to invoke {@code method} on, or null if {@code method} is static
       */
      public void testMethodParameter(
          @Nullable final Object instance, final Method method, int paramIndex) {
        method.setAccessible(true);
        testParameter(instance, invokable(instance, method), paramIndex, method.getDeclaringClass());
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClusterException.java

       *   <li>If {@code exceptions} has a single exceptions and that exceptions is not a
       *       {@link RuntimeException}, return a simple {@code RuntimeException} that wraps it
       *   <li>Otherwise, return an instance of {@link ClusterException} that wraps the first exception
       *       in the {@code exceptions} collection.
       * </ul>
       *
       * <p>Though this method takes any {@link Collection}, it often makes most sense to pass a {@link
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

      }
    
      private static GetCheckedTypeValidator nonCachingWithoutConstructorCheckValidator() {
        return NonCachingWithoutConstructorCheckValidator.INSTANCE;
      }
    
      private enum NonCachingWithoutConstructorCheckValidator implements GetCheckedTypeValidator {
        INSTANCE;
    
        @Override
        public void validateClass(Class<? extends Exception> exceptionClass) {
          checkArgument(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 22 03:01:34 GMT 2022
    - 6.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java

          setException(thrown);
        }
      }
    
      static final class ImmediateCancelledFuture<V extends @Nullable Object> extends TrustedFuture<V> {
        @CheckForNull
        static final ImmediateCancelledFuture<Object> INSTANCE =
            AbstractFuture.GENERATE_CANCELLATION_CAUSES ? null : new ImmediateCancelledFuture<>();
    
        ImmediateCancelledFuture() {
          cancel(false);
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Cut.java

          return INSTANCE;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /*
       * The implementation neither produces nor consumes any non-null instance of
       * type C, so casting the type parameter is safe.
       */
      @SuppressWarnings("unchecked")
      static <C extends Comparable> Cut<C> aboveAll() {
        return (Cut<C>) AboveAll.INSTANCE;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingObject.java

      protected ForwardingObject() {}
    
      /**
       * Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
       * generally override this method with an abstract method that has a more specific return type,
       * such as {@link ForwardingSet#delegate}. Concrete subclasses override this method to supply the
       * instance being decorated.
       */
      protected abstract Object delegate();
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/StatsTest.java

          assertEquivalent(stats.min(), stream(array).min().getAsDouble());
          // static method on Stats vs on instance method on DoubleStream
          assertEquivalent(Stats.meanOf(array), stream(array).average().getAsDouble());
          // instance methods on Stats vs instance methods on DoubleSummaryStatistics
          DoubleSummaryStatistics streamStats = stream(array).summaryStatistics();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/cache/CacheLoader.java

       * reloading or bulk loading. This is most useful when you can pass a lambda expression. Otherwise
       * it is useful mostly when you already have an existing function instance.
       *
       * <p>The returned object is serializable if {@code function} is serializable.
       *
       * @param function the function to be used for loading values; must never return {@code null}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ElementOrder.java

        this.comparator = comparator;
        checkState((type == Type.SORTED) == (comparator != null));
      }
    
      /** Returns an instance which specifies that no ordering is guaranteed. */
      public static <S> ElementOrder<S> unordered() {
        return new ElementOrder<>(Type.UNORDERED, null);
      }
    
      /**
       * Returns an instance which specifies that ordering is guaranteed to be always be the same across
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 6.7K bytes
    - Viewed (0)
Back to top