Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 72 for asSubclass (0.06 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        }
      }
    
      /*
       * TODO(cpovirk): surely we can find a less ugly solution than a class that accepts 3 parameters,
       * exposes as many getters, does work in the constructor, and has both a superclass and a subclass
       */
      public static class SortedMapSubmapTestMapGenerator<
              K extends @Nullable Object, V extends @Nullable Object>
          extends ForwardingTestMapGenerator<K, V> implements TestSortedMapGenerator<K, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

       * Returns a serializable form of this object. Non-public subclasses should not override this
       * method. Publicly-accessible subclasses must override this method and should return a subclass
       * of SerializedForm whose readResolve() method returns objects of the subclass type.
       */
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  3. 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(...)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. 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(...)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 15:16:19 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            } catch (Throwable e) {
              // Any Exception is either a RuntimeException or sneaky checked exception.
              //
              // If an exception is thrown by the subclass then we need to make sure that the service
              // notices and transitions to the FAILED state. We do it by calling notifyFailed directly
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

       * Returns a serializable form of this object. Non-public subclasses should not override this
       * method. Publicly-accessible subclasses must override this method and should return a subclass
       * of SerializedForm whose readResolve() method returns objects of the subclass type.
       */
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

           * more information, see the comments in that class.
           *
           * We already know that that's how it behaves, and subclasses of Converter can't change that
           * behavior. So there's no sense in making all subclass authors exclude the method from any
           * NullPointerTester tests that they have.
           */
          ignoredMembers.add(Converter.class.getMethod("apply", Object.class));
        } catch (NoSuchMethodException shouldBeImpossible) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            } catch (Throwable e) {
              // Any Exception is either a RuntimeException or sneaky checked exception.
              //
              // If an exception is thrown by the subclass then we need to make sure that the service
              // notices and transitions to the FAILED state. We do it by calling notifyFailed directly
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Iterables.java

        }
    
        @Override
        public void forEach(Consumer<? super T> action) {
          iterable.forEach(action);
        }
    
        @SuppressWarnings("unchecked") // safe upcast, assuming no one has a crazy Spliterator subclass
        @Override
        public Spliterator<T> spliterator() {
          return (Spliterator<T>) iterable.spliterator();
        }
    
        @Override
        public String toString() {
          return iterable.toString();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        class To<V> {
          Type type() {
            return new TypeToken<To<V>>(getClass()) {}.getType();
          }
        }
      }
    
      public <T> void testRejectTypeVariable_withOwnerType() {
        // Neither has subclass
        assertHasTypeVariable(new From<Integer>().new To<String>().type());
        assertHasTypeVariable(new From<T>().new To<String>().type());
        assertHasTypeVariable(new From<Integer>().new To<T>().type());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
Back to top