Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for rubyclass (0.19 sec)

  1. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

      public void testSubtypeOfInnerClass_nonStaticAnonymousClass() {
        TypeToken<?> supertype = new TypeToken<Mall<Outdoor>.Shop<Electronics>>() {};
        Class<?> subclass = new Mall<Outdoor>().new Shop<Electronics>() {}.getClass();
        assertTrue(TypeToken.of(subclass).isSubtypeOf(supertype));
      }
    
      @SuppressWarnings("RestrictedApiChecker") // crashes under JDK8, which EP no longer supports
    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)
  2. android/guava/src/com/google/common/reflect/Types.java

        private static ClassOwnership detectJvmBehavior() {
          class LocalClass<T> {}
          Class<?> subclass = new LocalClass<String>() {}.getClass();
          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
              requireNonNull((ParameterizedType) subclass.getGenericSuperclass());
          for (ClassOwnership behavior : ClassOwnership.values()) {
    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)
  3. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

     * href="https://github.com/lukas-krecan/future-converter">Future Converter</a>.)
     *
     * <h3>Extension</h3>
     *
     * If you want a class like {@code FluentFuture} but with extra methods, we recommend declaring your
     * own subclass of {@link ListenableFuture}, complete with a method like {@link #from} to adapt an
     * existing {@code ListenableFuture}, implemented atop a {@link ForwardingListenableFuture} that
     * forwards to that future and adds the desired methods.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        } catch (NullPointerException expected) {
        }
    
        assertThat(future.isDone()).isFalse();
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      /** Concrete subclass for testing. */
      private static class TestedFuture<V> extends AbstractFuture<V> {
        private static <V> TestedFuture<V> create() {
          return new TestedFuture<V>();
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        assertFalse(isInteger.apply(2.0f));
        assertFalse(isInteger.apply(""));
        assertFalse(isInteger.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_subclass() {
        Predicate<@Nullable Object> isNumber = Predicates.instanceOf(Number.class);
    
        assertTrue(isNumber.apply(1));
        assertTrue(isNumber.apply(2.0f));
        assertFalse(isNumber.apply(""));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingMultiset.java

       * ForwardingMultiset#entrySet}, and {@link ForwardingMultiset#remove(Object, int)}. In many
       * situations, you may wish to override {@link ForwardingMultiset#elementSet} to forward to this
       * implementation or a subclass thereof.
       *
       * @since 10.0
       */
      protected class StandardElementSet extends Multisets.ElementSet<E> {
        /** Constructor for use by subclasses. */
        public StandardElementSet() {}
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Joiner.java

        /*
         * requireNonNull is not safe: Joiner.on(...).join(somethingThatContainsNull) will indeed throw.
         * However, Joiner.on(...).useForNull(...).join(somethingThatContainsNull) *is* safe -- because
         * it returns a subclass of Joiner that overrides this method to tolerate null inputs.
         *
         * Unfortunately, we don't distinguish between these two cases in our public API: Joiner.on(...)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingMap.java

       * {@link ForwardingMap#entrySet}. In many cases, you may wish to override {@link
       * ForwardingMap#keySet} to forward to this implementation or a subclass thereof.
       *
       * @since 10.0
       */
      protected class StandardKeySet extends Maps.KeySet<K, V> {
        /** Constructor for use by subclasses. */
        public StandardKeySet() {
          super(ForwardingMap.this);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

                  public void remove() {
                    throw new IllegalStateException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public Integer next() {
                    throw new NoSuchElementException() {
                      /* subclass */
                    };
                  }
    
                  @Override
                  public boolean hasNext() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

     * AbstractMapBasedMultimap} calls {@link #createCollection()} to create the collection of values
     * for that key. The subclass should not call {@link #createCollection()} directly, and a new
     * instance should be created every time the method is called.
     *
     * <p>For example, the subclass could pass a {@link java.util.TreeMap} during construction, and
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
Back to top