Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for interface (0.2 sec)

  1. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                  @Override
                  public Sub apply(Sub sub) {
                    return new ForwardingSub(sub);
                  }
                });
      }
    
      interface Base {
        CharSequence getId();
      }
    
      interface Sub extends Base {
        @Override
        String getId();
      }
    
      private static class ForwardingSub implements Sub {
        private final Sub delegate;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        }
      }
    
      // TODO(benyu): migrate all subtyping tests from TypeTokenTest to this class using SubtypeTester.
    
      private interface Outdoor {}
    
      private interface Indoor {}
    
      private interface Grocery {}
    
      private interface Electronics {}
    
      private interface ConsumerFacing<T> {}
    
      private static class Mall<T> {
        class Shop<ProductT> {}
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          throw new RuntimeException();
        }
      }
    
      private interface InterfaceStaticMethodFailsToCheckNull {
        static String create(String s) {
          return "I don't check";
        }
      }
    
      private interface InterfaceStaticMethodChecksNull {
        static String create(String s) {
          return checkNotNull(s);
        }
      }
    
      private interface InterfaceDefaultMethodFailsToCheckNull {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Types.java

       *
       * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable}
       * interface, whose return type {@code AnnotatedType[]} is also new in Java 8. That means that we
       * cannot implement that interface in source code in a way that will compile on both Java 7 and
       * Java 8. If we include the {@code getAnnotatedBounds()} method then its return type means it
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
    
        @Override
        public String toString() {
          return paramString(interfaceType, identity);
        }
      }
    
      /** Subclasses can override to provide different return value for proxied interface methods. */
      @CheckForNull
      Object interfaceMethodCalled(Class<?> interfaceType, Method method) {
        throw new UnsupportedOperationException();
      }
    
      private <T> T pickInstance(T[] instances, T defaultValue) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

    /** Benchmarks for {@link ExecutionList}. */
    @VmOptions({"-Xms8g", "-Xmx8g"})
    public class ExecutionListBenchmark {
      private static final int NUM_THREADS = 10; // make a param?
    
      // simple interface to wrap our two implementations.
      interface ExecutionListWrapper {
        void add(Runnable runnable, Executor executor);
    
        void execute();
        /** Returns the underlying implementation, useful for the Footprint benchmark. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:19:38 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      }
    
      public void testGet_enum() {
        assertNull(ArbitraryInstances.get(EmptyEnum.class));
        assertEquals(Direction.UP, ArbitraryInstances.get(Direction.class));
      }
    
      public void testGet_interface() {
        assertNull(ArbitraryInstances.get(SomeInterface.class));
      }
    
      public void testGet_runnable() {
        ArbitraryInstances.get(Runnable.class).run();
      }
    
      public void testGet_class() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     *
     * <p>The {@link #values()} and {@link #entries()} methods both return a {@code List}, instead of
     * the {@code Collection} specified by the {@link ListMultimap} interface.
     *
     * <p>The methods {@link #get}, {@link #keySet()}, {@link #keys()}, {@link #values}, {@link
     * #entries()}, and {@link #asMap} return collections that are views of the multimap. If the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/Service.java

     * and {@link State#TERMINATED} states are terminal states, once a service enters either of these
     * states it cannot ever leave them.
     *
     * <p>Implementors of this interface are strongly encouraged to extend one of the abstract classes
     * in this package which implement this interface and make the threading and state management
     * easier.
     *
     * @author Jesse Wilson
     * @author Luke Sandberg
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Multimap.java

     * removeAll} methods, which contain values that have just been removed from the multimap, are
     * naturally <i>not</i> views.
     *
     * <h3>Subinterfaces</h3>
     *
     * <p>Instead of using the {@code Multimap} interface directly, prefer the subinterfaces {@link
     * ListMultimap} and {@link SetMultimap}. These take their names from the fact that the collections
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
Back to top