- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 261 for type (0.15 sec)
-
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
} private /*static*/ <S> S doConvert(TypeToken<S> type) { return checkNotNull(getDefaultValue(type)); } }; } private static TypeToken<?> getFirstTypeParameter(Type type) { if (type instanceof ParameterizedType) { return TypeToken.of(((ParameterizedType) type).getActualTypeArguments()[0]); } else { return TypeToken.of(Object.class); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 22.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Invokable.java
if (types.length > 0 && mayNeedHiddenThis()) { Class<?>[] rawParamTypes = constructor.getParameterTypes(); if (types.length == rawParamTypes.length && rawParamTypes[0] == getDeclaringClass().getEnclosingClass()) { // first parameter is the hidden 'this' return Arrays.copyOfRange(types, 1, types.length); } } return types;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertNotPrimitive(type); assertEquals(TypeToken.of(Primitives.unwrap((Class<?>) type.getType())), type.unwrap()); } private static void assertNotWrapper(TypeToken<?> type) { assertSame(type, type.unwrap()); } private static void assertNotPrimitiveNorWrapper(TypeToken<?> type) { assertNotPrimitive(type); assertNotWrapper(type); } private interface BaseInterface {}
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
/** Creates an empty {@code EnumMultiset}. */ private EnumMultiset(Class<E> type) { this.type = type; checkArgument(type.isEnum()); this.enumConstants = type.getEnumConstants(); this.counts = new int[enumConstants.length]; } private boolean isActuallyE(@CheckForNull Object o) { if (o instanceof Enum) { Enum<?> e = (Enum<?>) o; int index = e.ordinal();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
assertFalse(JPEG.hasWildcard()); assertTrue(ANY_TYPE.hasWildcard()); assertTrue(ANY_APPLICATION_TYPE.hasWildcard()); assertTrue(ANY_AUDIO_TYPE.hasWildcard()); assertTrue(ANY_IMAGE_TYPE.hasWildcard()); assertTrue(ANY_TEXT_TYPE.hasWildcard()); assertTrue(ANY_VIDEO_TYPE.hasWildcard()); } public void testIs() { assertTrue(PLAIN_TEXT_UTF_8.is(ANY_TYPE)); assertTrue(JPEG.is(ANY_TYPE));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Mar 05 13:16:00 GMT 2024 - 21.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/MediaTypeTest.java
assertFalse(JPEG.hasWildcard()); assertTrue(ANY_TYPE.hasWildcard()); assertTrue(ANY_APPLICATION_TYPE.hasWildcard()); assertTrue(ANY_AUDIO_TYPE.hasWildcard()); assertTrue(ANY_IMAGE_TYPE.hasWildcard()); assertTrue(ANY_TEXT_TYPE.hasWildcard()); assertTrue(ANY_VIDEO_TYPE.hasWildcard()); } public void testIs() { assertTrue(PLAIN_TEXT_UTF_8.is(ANY_TYPE)); assertTrue(JPEG.is(ANY_TYPE));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 05 13:16:00 GMT 2024 - 21.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ClassSanityTester.java
return this; } /** * Sets distinct values for {@code type}, so that when a class {@code Foo} is tested for {@link * Object#equals} and {@link Object#hashCode}, and its construction requires a parameter of {@code * type}, the distinct values of {@code type} can be passed as parameters to create {@code Foo} * instances that are unequal. *
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Feb 08 17:31:55 GMT 2024 - 33K bytes - Viewed (0) -
android/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 May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
static boolean isCheckedException(Class<? extends Exception> type) { return !RuntimeException.class.isAssignableFrom(type); } @VisibleForTesting static void checkExceptionClassValidity(Class<? extends Exception> exceptionClass) { checkArgument( isCheckedException(exceptionClass), "Futures.getChecked exception type (%s) must not be a RuntimeException", exceptionClass);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Dec 14 20:35:03 GMT 2023 - 10.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ElementTypesAreNonnullByDefault.java
* "undo" it as best we can. */ @GwtCompatible @Retention(RUNTIME) @Target(TYPE) @TypeQualifierDefault({FIELD, METHOD, PARAMETER}) @Nonnull
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.5K bytes - Viewed (0)