Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 950 for implements (0.72 sec)

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

      /** 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() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/hash/Funnels.java

      /** 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() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

            assertThat(expected.getMessage()).contains(message);
          }
          return;
        }
        fail("expected failure not reported");
      }
    
      private class ForwardingRunnable implements Runnable {
    
        private final Runnable runnable;
    
        ForwardingRunnable(Runnable runnable) {
          this.runnable = runnable;
        }
    
        @Override
        public void run() {
          runnable.run();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      public static class NoOpRunnable implements Runnable {
        @Override
        public void run() {}
      }
    
      public static class NoOpCallable implements Callable<Object> {
        @Override
        public Object call() {
          return Boolean.TRUE;
        }
      }
    
      public static final String TEST_STRING = "a test string";
    
      public static class StringTask implements Callable<String> {
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTesterTest.java

        ForwardingObjectTester.testForwardingObject(ForwardToDelegate.class);
      }
    
      private abstract static class FailToForward extends ForwardingObject implements Runnable {
        @Override
        public void run() {}
      }
    
      private abstract static class ForwardToDelegate extends ForwardingObject implements Runnable {
        @Override
        public void run() {
          delegate().run();
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          }
    
          @Override
          public void tearDown() throws IOException {
            factory.tearDown();
          }
        };
      }
    
      private static class StringSourceFactory implements CharSourceFactory {
    
        @Override
        public CharSource createSource(String data) throws IOException {
          return CharSource.wrap(data);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Functions.java

       */
      public static Function<Object, String> toStringFunction() {
        return ToStringFunction.INSTANCE;
      }
    
      // enum singleton pattern
      private enum ToStringFunction implements Function<Object, String> {
        INSTANCE;
    
        @Override
        public String apply(Object o) {
          checkNotNull(o); // eager for GWT.
          return o.toString();
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CollectSpliterators.java

          IntFunction<T> function,
          @CheckForNull Comparator<? super T> comparator) {
        if (comparator != null) {
          checkArgument((extraCharacteristics & Spliterator.SORTED) != 0);
        }
        class WithCharacteristics implements Spliterator<T> {
          private final Spliterator.OfInt delegate;
    
          WithCharacteristics(Spliterator.OfInt delegate) {
            this.delegate = delegate;
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Predicates.java

        return new ContainsPatternPredicate(new JdkPattern(pattern));
      }
    
      // End public API, begin private implementation classes.
    
      // Package private for GWT serialization.
      enum ObjectPredicate implements Predicate<@Nullable Object> {
        /** @see Predicates#alwaysTrue() */
        ALWAYS_TRUE {
          @Override
          public boolean apply(@CheckForNull Object o) {
            return true;
          }
    
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Suppliers.java

        return new SupplierComposition<>(function, supplier);
      }
    
      private static class SupplierComposition<F extends @Nullable Object, T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top