Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for generous (0.14 sec)

  1. android/guava/src/com/google/common/collect/TreeBasedTable.java

       * instead of {@code R extends Comparable<? super R>}, and the same for {@code C}. That's
       * necessary to support classes defined without generics.
       */
      @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
      public static <R extends Comparable, C extends Comparable, V> TreeBasedTable<R, C, V> create() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Comparators.java

       * {@code [1]} and {@code [1, 1]}).
       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
      public static <T extends @Nullable Object, S extends T> Comparator<Iterable<S>> lexicographical(
          Comparator<T> comparator) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/ConverterTest.java

      }
    
      private static class StringWrapper {
        private final String value;
    
        public StringWrapper(String value) {
          this.value = value;
        }
      }
    
      @GwtIncompatible // J2CL generics problem
      public void testAndThen() {
        Converter<StringWrapper, String> first =
            new Converter<StringWrapper, String>() {
              @Override
              protected String doForward(StringWrapper object) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/Derived.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /** Simple derived class to verify that we handle generics correctly. */
    @GwtCompatible
    class Derived extends Base {
      public Derived(String s) {
        super(s);
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 908 bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Derived.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /** Simple derived class to verify that we handle generics correctly. */
    @GwtCompatible
    class Derived extends Base {
      public Derived(String s) {
        super(s);
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 908 bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/Base.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /** Simple base class to verify that we handle generics correctly. */
    @GwtCompatible
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
      @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/LegacyComparable.java

    import com.google.common.annotations.GwtCompatible;
    import java.io.Serializable;
    import java.util.Arrays;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A class that implements {@code Comparable} without generics, such as those found in libraries
     * that support Java 1.4 and before. Our library needs to do the bare minimum to accommodate such
     * types, though their use may still require an explicit type parameter and/or warning suppression.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Optional.java

       * value should be required because the instance is known to be present, use {@link #get()}
       * instead. For a default value of {@code null}, use {@link #orNull}.
       *
       * <p>Note about generics: The signature {@code public T or(T defaultValue)} is overly
       * restrictive. However, the ideal signature, {@code public <S super T> S or(S)}, is not legal
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * used; or if the class exposes a public parameter-less constructor then it will be "new"d and
     * returned.
     *
     * <p>All default instances returned by {@link #get} are generics-safe. Clients won't get type
     * errors for using {@code get(Comparator.class)} as a {@code Comparator<Foo>}, for example.
     * Immutable empty instances are returned for collection types; {@code ""} for string; {@code 0} for
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

     * used; or if the class exposes a public parameter-less constructor then it will be "new"d and
     * returned.
     *
     * <p>All default instances returned by {@link #get} are generics-safe. Clients won't get type
     * errors for using {@code get(Comparator.class)} as a {@code Comparator<Foo>}, for example.
     * Immutable empty instances are returned for collection types; {@code ""} for string; {@code 0} for
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top