- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 249 for type (0.16 sec)
-
guava-testlib/src/com/google/common/collect/testing/MinimalSet.java
Class<? super @NonNull E> type, E[] emptyArrayForContents, Iterable<? extends E> contents) { List<E> setContents = new ArrayList<>(); for (E e : contents) { if (!setContents.contains(e)) { setContents.add(e); } } return new MinimalSet<>(type, setContents.toArray(emptyArrayForContents)); } private MinimalSet(Class<? super @NonNull E> type, E... contents) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java
Class<? super @NonNull E> type, E[] emptyArrayForContents, Iterable<? extends E> contents) { List<E> setContents = new ArrayList<>(); for (E e : contents) { if (!setContents.contains(e)) { setContents.add(e); } } return new MinimalSet<>(type, setContents.toArray(emptyArrayForContents)); } private MinimalSet(Class<? super @NonNull E> type, E... contents) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
} public void testNewArrayType_upperBoundedWildcard() { Type wildcard = Types.subtypeOf(Number.class); assertEquals(Types.subtypeOf(Number[].class), Types.newArrayType(wildcard)); } public void testNewArrayType_lowerBoundedWildcard() { Type wildcard = Types.supertypeOf(Number.class); assertEquals(Types.supertypeOf(Number[].class), Types.newArrayType(wildcard)); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 14.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
Class<? super @NonNull E> type, E... contents) { return new MinimalCollection<>(type, true, contents); } private final E[] contents; private final Class<? super @NonNull E> type; private final boolean allowNulls; // Package-private so that it can be extended. MinimalCollection(Class<? super @NonNull E> type, boolean allowNulls, E... contents) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
sep = ", "; } methods.add(signature.append(")").toString()); } return methods.build(); } private static String typeName(Class<?> type) { return type.isArray() ? typeName(type.getComponentType()) + "[]" : type.getName(); } public void testConstructor() throws Exception { Invokable<A, A> invokable = A.constructor(); assertTrue(invokable.isPublic());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 30.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
} public void testParameterizedType() { TypeToken<ImmutableList<Integer>> type = new TypeToken<ImmutableList<Integer>>() {}; ImmutableTypeToInstanceMap<Iterable<?>> map = ImmutableTypeToInstanceMap.<Iterable<?>>builder().put(type, ImmutableList.of(1)).build(); assertEquals(1, map.size()); assertEquals(ImmutableList.of(1), map.getInstance(type)); } public void testGenericArrayType() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 6.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
* * @param <B> The concrete type of this builder (the 'self-type'). All the Builder methods of this * class (such as {@link #named}) return this type, so that Builder methods of more derived * classes can be chained onto them without casting. * @param <G> The type of the generator to be passed to testers in the generated test suite. An
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 10.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {}; map.putInstance(type, array); assertEquals(1, map.size()); assertThat(map.getInstance(type)).asList().containsExactly(array[0]); } public void testWildcardType() { TypeToken<ImmutableList<?>> type = new TypeToken<ImmutableList<?>>() {}; map.putInstance(type, ImmutableList.of(1)); assertEquals(1, map.size());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/DirectedGraphConnections.java
import javax.annotation.CheckForNull; /** * An implementation of {@link GraphConnections} for directed graphs. * * @author James Sexton * @author Jens Nyman * @param <N> Node parameter type * @param <V> Value parameter type */ @ElementTypesAreNonnullByDefault final class DirectedGraphConnections<N, V> implements GraphConnections<N, V> { /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 18K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
testToString(interfaceType, wrapperFunction); } /** Returns the most concrete public methods from {@code type}. */ private static Method[] getMostConcreteMethods(Class<?> type) { Method[] methods = type.getMethods(); for (int i = 0; i < methods.length; i++) { try { methods[i] = type.getMethod(methods[i].getName(), methods[i].getParameterTypes()); } catch (Exception e) { throwIfUnchecked(e);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 9.1K bytes - Viewed (0)