Searched defs:Pair (Results 1 - 6 of 6) sorted by relevance

/libcore/support/src/test/java/tests/util/
H A DPair.java20 * Pair of typed values.
27 public class Pair<F, S> { class
31 private Pair(F first, S second) { method in class:Pair
42 public static <F, S> Pair<F, S> of(F first, S second) {
43 return new Pair<F, S>(first, second);
66 return "Pair[" + mFirst + ", " + mSecond + "]";
90 Pair other = (Pair) obj;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DOldGenericReflectionCornerCases.java33 static class Pair<T, S> {} class in class:OldGenericReflectionCornerCases
36 void wildcardEquality(Pair<? extends T, ? extends T> param) {}
42 Method method = clazz.getDeclaredMethod("wildcardEquality", Pair.class);
79 void wildcardUnEquality(Pair<? extends T, ? super T> param) {}
85 Method method = clazz.getDeclaredMethod("wildcardUnEquality", Pair.class);
121 void multipleBoundedWildcardUnEquality(Pair<? extends T, ? super T> param) {}
127 // new WildcardEquality<Object>().wildcardEquality(new Pair<String,
130 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardUnEquality", Pair.class);
176 void multipleBoundedWildcardEquality(Pair<? extends T, ? extends T> param) {}
182 Method method = clazz.getDeclaredMethod("multipleBoundedWildcardEquality", Pair
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
H A DAtomicMarkableReference.java52 private static class Pair<T> { class in class:AtomicMarkableReference
55 private Pair(T reference, boolean mark) { method in class:AtomicMarkableReference.Pair
59 static <T> Pair<T> of(T reference, boolean mark) {
60 return new Pair<T>(reference, mark);
64 private volatile Pair<V> pair;
74 pair = Pair.of(initialRef, initialMark);
104 Pair<V> pair = this.pair;
149 Pair<V> current = pair;
155 casPair(current, Pair.of(newReference, newMark)));
165 Pair<
[all...]
H A DAtomicStampedReference.java52 private static class Pair<T> { class in class:AtomicStampedReference
55 private Pair(T reference, int stamp) { method in class:AtomicStampedReference.Pair
59 static <T> Pair<T> of(T reference, int stamp) {
60 return new Pair<T>(reference, stamp);
64 private volatile Pair<V> pair;
74 pair = Pair.of(initialRef, initialStamp);
104 Pair<V> pair = this.pair;
149 Pair<V> current = pair;
155 casPair(current, Pair.of(newReference, newStamp)));
165 Pair<
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/format/
H A DTestReducedParser.java216 // Strict Pair(endPos, value), Lenient Pair(endPos, value)
273 Pair strict, Pair lenient) {
288 Pair strict, Pair lenient) {
306 Pair strict, Pair lenient) {
321 Pair strict, Pair lenien
505 private static class Pair { class in class:TestReducedParser
509 public Pair(int parseLen, Integer parseVal, boolean strict) { method in class:TestReducedParser.Pair
[all...]
/libcore/luni/src/test/java/libcore/java/security/
H A DProviderTest.java912 new Pair("class2.algorithm2", "impl2") /* operationParameters */,
941 new Pair("class1.algorithm1", CONCAT),
947 new Pair("class1.algorithm1", "impl2"),
954 new Pair("class2.algorithm2", "impl2"),
960 new Pair("class2.algorithm2", "impl2"),
966 new Pair("class1.algorithm1", CONCAT),
972 new Pair("class2.algorithm2", CONCAT),
979 new Pair("class2.algorithm2", TO_UPPER_CASE),
985 new Pair("class1.algorithm1", TO_UPPER_CASE),
992 new Pair("class
1050 private static class Pair<A, B> { class in class:ProviderTest
1053 Pair(A first, B second) { method in class:ProviderTest.Pair
[all...]

Completed in 27 milliseconds