Home
last modified time | relevance | path

Searched refs:Primitives (Results 1 – 25 of 61) sorted by relevance

123

/external/mockito/src/test/java/org/mockito/internal/util/
DPrimitivesTest.java17 assertNotNull(Primitives.defaultValue(Boolean.class)); in should_not_return_null_for_primitives_wrappers()
18 assertNotNull(Primitives.defaultValue(Character.class)); in should_not_return_null_for_primitives_wrappers()
19 assertNotNull(Primitives.defaultValue(Byte.class)); in should_not_return_null_for_primitives_wrappers()
20 assertNotNull(Primitives.defaultValue(Short.class)); in should_not_return_null_for_primitives_wrappers()
21 assertNotNull(Primitives.defaultValue(Integer.class)); in should_not_return_null_for_primitives_wrappers()
22 assertNotNull(Primitives.defaultValue(Long.class)); in should_not_return_null_for_primitives_wrappers()
23 assertNotNull(Primitives.defaultValue(Float.class)); in should_not_return_null_for_primitives_wrappers()
24 assertNotNull(Primitives.defaultValue(Double.class)); in should_not_return_null_for_primitives_wrappers()
29 assertNotNull(Primitives.defaultValue(boolean.class)); in should_not_return_null_for_primitives()
30 assertNotNull(Primitives.defaultValue(char.class)); in should_not_return_null_for_primitives()
[all …]
/external/guava/android/guava-tests/test/com/google/common/primitives/
DPrimitivesTest.java31 assertTrue(Primitives.isWrapperType(Void.class)); in testIsWrapperType()
32 assertFalse(Primitives.isWrapperType(void.class)); in testIsWrapperType()
36 assertSame(Integer.class, Primitives.wrap(int.class)); in testWrap()
37 assertSame(Integer.class, Primitives.wrap(Integer.class)); in testWrap()
38 assertSame(String.class, Primitives.wrap(String.class)); in testWrap()
42 assertSame(int.class, Primitives.unwrap(Integer.class)); in testUnwrap()
43 assertSame(int.class, Primitives.unwrap(int.class)); in testUnwrap()
44 assertSame(String.class, Primitives.unwrap(String.class)); in testUnwrap()
48 Set<Class<?>> primitives = Primitives.allPrimitiveTypes(); in testAllPrimitiveTypes()
70 Set<Class<?>> wrappers = Primitives.allWrapperTypes(); in testAllWrapperTypes()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DPrimitivesTest.java31 assertTrue(Primitives.isWrapperType(Void.class)); in testIsWrapperType()
32 assertFalse(Primitives.isWrapperType(void.class)); in testIsWrapperType()
36 assertSame(Integer.class, Primitives.wrap(int.class)); in testWrap()
37 assertSame(Integer.class, Primitives.wrap(Integer.class)); in testWrap()
38 assertSame(String.class, Primitives.wrap(String.class)); in testWrap()
42 assertSame(int.class, Primitives.unwrap(Integer.class)); in testUnwrap()
43 assertSame(int.class, Primitives.unwrap(int.class)); in testUnwrap()
44 assertSame(String.class, Primitives.unwrap(String.class)); in testUnwrap()
48 Set<Class<?>> primitives = Primitives.allPrimitiveTypes(); in testAllPrimitiveTypes()
70 Set<Class<?>> wrappers = Primitives.allWrapperTypes(); in testAllWrapperTypes()
[all …]
/external/mockito/src/main/java/org/mockito/internal/stubbing/answers/
DInvocationInfo.java10 import org.mockito.internal.util.Primitives;
35 … return Primitives.primitiveTypeOf(clazz) == Primitives.primitiveTypeOf(method.getReturnType()); in isValidReturnType()
/external/escapevelocity/src/test/java/com/google/escapevelocity/
DReferenceNodeTest.java22 import com.google.common.primitives.Primitives;
76 for (Class<?> from : Primitives.allPrimitiveTypes()) { in testPrimitiveTypeIsAssignmentCompatible()
77 for (Class<?> to : Primitives.allPrimitiveTypes()) { in testPrimitiveTypeIsAssignmentCompatible()
/external/mockito/src/main/java/org/mockito/internal/util/
DPrimitives.java11 public class Primitives { class
47 …return Primitives.primitiveTypeOf(valueClass).isAssignableFrom(Primitives.primitiveTypeOf(referenc… in isAssignableFromWrapper()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsEmptyValues.java9 import org.mockito.internal.util.Primitives;
78 if (Primitives.isPrimitiveOrWrapper(type)) { in returnValueFor()
79 return Primitives.defaultValue(type); in returnValueFor()
/external/mockito/src/main/java/org/mockito/
DArgumentMatchers.java26 import org.mockito.internal.util.Primitives;
29 import static org.mockito.internal.util.Primitives.defaultValue;
905 return (T) Primitives.defaultValue(value.getClass()); in eq()
952 return (T) Primitives.defaultValue(value.getClass()); in same()
1092 return (T) Primitives.defaultValue(clazz); in nullable()
DArgumentCaptor.java7 import static org.mockito.internal.util.Primitives.defaultValue;
/external/mockito/src/main/java/org/mockito/internal/matchers/
DInstanceOf.java9 import org.mockito.internal.util.Primitives;
30 (Primitives.isAssignableFromWrapper(actual.getClass(), clazz) in matches()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/
DTestCreators2.java41 static class Primitives class in TestCreators2
48 public Primitives(@JsonProperty("x") int x, in Primitives() method in TestCreators2.Primitives
220 Primitives p = MAPPER.readValue("{}", Primitives.class); in testMissingPrimitives()
/external/desugar/java/com/google/devtools/common/options/
DGenericTypeHelper.java17 import com.google.common.primitives.Primitives;
124 return Primitives.wrap(toClass).equals(from); in isAssignableFrom()
/external/guava/android/guava/src/com/google/common/primitives/
DPrimitives.java33 public final class Primitives { class
34 private Primitives() {} in Primitives() method in Primitives
/external/guava/guava/src/com/google/common/primitives/
DPrimitives.java33 public final class Primitives { class
34 private Primitives() {} in Primitives() method in Primitives
/external/caliper/caliper/src/main/java/com/google/caliper/util/
DParsers.java20 import com.google.common.primitives.Primitives;
55 final Class<T> wrappedResultType = Primitives.wrap(resultType); in conventionalParser()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DParameter.java26 import com.google.common.primitives.Primitives;
58 Class<?> type = Primitives.wrap(field.getType()); in Parameter()
/external/guava/android/guava/src/com/google/common/collect/
DImmutableClassToInstanceMap.java22 import com.google.common.primitives.Primitives;
120 return Primitives.wrap(type).cast(value); in cast()
DMutableClassToInstanceMap.java22 import com.google.common.primitives.Primitives;
149 return Primitives.wrap(type).cast(value);
/external/guava/guava/src/com/google/common/collect/
DImmutableClassToInstanceMap.java22 import com.google.common.primitives.Primitives;
120 return Primitives.wrap(type).cast(value); in cast()
DMutableClassToInstanceMap.java22 import com.google.common.primitives.Primitives;
160 return Primitives.wrap(type).cast(value);
/external/python/cryptography/docs/hazmat/primitives/
Dindex.rst3 Primitives title
/external/escapevelocity/src/main/java/com/google/escapevelocity/
DReferenceNode.java24 import com.google.common.primitives.Primitives;
282 if (value == null || !Primitives.isWrapperType(value.getClass())) { in primitiveIsCompatible()
285 return primitiveTypeIsAssignmentCompatible(primitive, Primitives.unwrap(value.getClass())); in primitiveIsCompatible()
/external/boringssl/src/third_party/fiat/
DREADME.chromium1 Name: Fiat-Crypto: Synthesizing Correct-by-Construction Code for Cryptographic Primitives
DMETADATA2 description: "Fiat-Crypto: Synthesizing Correct-by-Construction Code for Cryptographic Primitives."
/external/mockito/src/main/java/org/mockito/internal/creation/instance/
DConstructorInstantiator.java15 import org.mockito.internal.util.Primitives;
129 … (types[i].isPrimitive() && !types[i].equals(Primitives.primitiveTypeOf(params[i].getClass())))) { in paramsMatch()

123