Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for generous (0.24 sec)

  1. 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)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          return getDone(future);
        }
      }
    
      private static class MyException extends Exception {}
    
      // Class hierarchy for generics sanity checks
      private static class Foo {}
    
      private static class FooChild extends Foo {}
    
      private static class Bar {}
    
      private static class BarChild extends Bar {}
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/OrderingTest.java

        Helpers.testComparator(
            comparator,
            ImmutableList.of("red", "yellow", "violet", "blue", "indigo", "green", "orange"));
      }
    
      public void testCompound_instance_generics() {
        Ordering<Object> objects = Ordering.explicit((Object) 1);
        Ordering<Number> numbers = Ordering.explicit((Number) 1);
        Ordering<Integer> integers = Ordering.explicit(1);
    
        // Like by like equals like
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        Helpers.testComparator(
            comparator,
            ImmutableList.of("red", "yellow", "violet", "blue", "indigo", "green", "orange"));
      }
    
      public void testCompound_instance_generics() {
        Ordering<Object> objects = Ordering.explicit((Object) 1);
        Ordering<Number> numbers = Ordering.explicit((Number) 1);
        Ordering<Integer> integers = Ordering.explicit(1);
    
        // Like by like equals like
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  5. maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar

    as determined by calling the Class.isInstance(Object) method on that type, passing the the examined object. The created matcher forces a relationship between specified type and the examined object, and should be used when it is necessary to make generics conform, for example in the JMock clause with(any(Thing.class)) For example: assertThat(new Canoe(), instanceOf(Canoe.class)); instanceOf public static <T> Matcher<T> instanceOf(java.lang.Class<?> type) Creates a matcher that matches when the examined...
    Archive
    - Registered: Sun Apr 14 03:35:08 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 236.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/GenericsUtil.java

    import java.lang.reflect.WildcardType;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    
    import org.codelibs.core.collection.CollectionsUtil;
    
    /**
     * genericsを扱うためのユーティリティ・クラスです。
     *
     * @author koichik
     */
    public abstract class GenericsUtil {
    
        /**
         * <code>type</code>の原型が<code>clazz</code>に代入可能であれば<code>true</code>を、
         * それ以外の場合は<code>false</code>を返します。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            qualifier: KtSimpleNameExpression,
            wholeTypeFir: FirResolvedTypeRef
        ): ClassId? {
            val qualifierToResolve = qualifier.parent as KtUserType
            // FIXME make it work with generics in functional types (like () -> AA.BB<CC, AA.DD>)
            val wholeType = when (val psi = wholeTypeFir.psi) {
                is KtUserType -> psi
                is KtTypeReference -> psi.typeElement?.unwrapNullability() as? KtUserType
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

       *
       * @since 11.0
       */
      public static <E> ImmutableMultiset<E> copyHighestCountFirst(Multiset<E> multiset) {
        @SuppressWarnings("unchecked") // generics+arrays
        // TODO(cpovirk): Consider storing an Entry<?> instead of Entry<E>.
        Entry<E>[] entries = (Entry<E>[]) multiset.entrySet().toArray((Entry<E>[]) new Entry<?>[0]);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  9. ChangeLog.md

    - [`KT-59073`](https://youtrack.jetbrains.com/issue/KT-59073) Native: don't include kotlinx.cli endorsed library into compiler distribution
    - [`KT-58707`](https://youtrack.jetbrains.com/issue/KT-58707) [K/N] Compiler crash building generics with redundant cast
    - [`KT-58654`](https://youtrack.jetbrains.com/issue/KT-58654) Compiler error from kotlin.collections.Map : "Invalid phi record", while compiling for kotlin native
    
    ### Native. C Export
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/collect/Maps.java

          return (SortedMap<K, V>) super.entriesOnlyOnRight();
        }
      }
    
      /**
       * Returns the specified comparator if not null; otherwise returns {@code Ordering.natural()}.
       * This method is an abomination of generics; the only purpose of this method is to contain the
       * ugly type-casting in one place.
       */
      @SuppressWarnings("unchecked")
      static <E extends @Nullable Object> Comparator<? super E> orNaturalOrder(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top