Searched refs:Pair (Results 1 - 25 of 119) sorted by relevance

12345

/openjdk10/langtools/test/tools/javac/generics/inference/8067767/
H A DT8067767.java34 static class Pair<A, B> { class in class:T8067767
35 static <A, B> Pair<A, B> of(A a, B b) {
46 static final List<Pair<String, String>> PAIRS = List.of(
47 Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"), Pair.of("a", "b"),
48 Pair.of("a", "b"), Pair
[all...]
/openjdk10/langtools/test/tools/javac/generics/6910550/
H A DT6910550e.java11 static class Pair<X,Y> {} class in class:T6910550e
13 <X> void m(Pair<X,X> x) {}
14 <X,Y> void m(Pair<X,Y> y) {}
16 { m(new Pair<String,String>());
17 m(new Pair<String,Integer>()); }
/openjdk10/jdk/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/
H A DPair.java31 public final class Pair<T, U> { class
33 public Pair(T first, U second) { method in class:Pair
41 // Because 'pair()' is shorter than 'new Pair<>()'.
44 public static <T, U> Pair<T, U> pair(T first, U second) {
45 return new Pair<>(first, second);
/openjdk10/langtools/test/tools/javac/
H A DT6247324.java6 class Pair<X,Y> { class
10 public Pair(X x, Y y){ method in class:Pair
26 Pair<Integer, String> pair = new Pair<Integer, String>(0, "I am not sure");
/openjdk10/hotspot/src/share/vm/utilities/
H A Dpair.hpp31 class Pair : public ALLOC_BASE { class in inherits:ALLOC_BASE
36 Pair() {} function in class:Pair
37 Pair(T t, V v) : first(t), second(v) {} function in class:Pair
/openjdk10/langtools/test/tools/javac/generics/typevars/
H A DT7148242.java31 static abstract class A<K, V, I extends Pair<K, V>, I2 extends Pair<V, K>> {
34 static class Pair<K, V> { } class in class:T7148242
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.util/src/org/graalvm/util/
H A DPair.java30 public final class Pair<L, R> { class
31 private static final Pair<Object, Object> EMPTY = new Pair<>(null, null);
37 public static <L, R> Pair<L, R> empty() {
38 return (Pair<L, R>) EMPTY;
41 public static <L, R> Pair<L, R> createLeft(L left) {
45 return new Pair<>(left, null);
49 public static <L, R> Pair<L, R> createRight(R right) {
53 return new Pair<>(null, right);
57 public static <L, R> Pair<
65 private Pair(L left, R right) { method in class:Pair
[all...]
/openjdk10/hotspot/test/compiler/compilercontrol/share/pool/
H A DSubMethodHolder.java3 import jdk.test.lib.util.Pair;
19 public List<Pair<Executable, Callable<?>>> getAllMethods() {
20 List<Pair<Executable, Callable<?>>> pairs = new ArrayList<>();
23 Pair<Executable, Callable<?>> pair = new Pair<>(method,
29 Pair<Executable, Callable<?>> pair = new Pair<>(method,
35 Pair<Executable, Callable<?>> pair = new Pair<>(method,
41 Pair<Executabl
[all...]
H A DMethodHolder.java26 import jdk.test.lib.util.Pair;
61 public List<Pair<Executable, Callable<?>>> getAllMethods() {
69 List<Pair<Executable, Callable<?>>> pairs = new ArrayList<>();
73 Pair<Executable, Callable<?>> pair = new Pair<>(method,
92 Pair<Executable, Callable<?>> pair = new Pair<>(method,
101 Pair<Executable, Callable<?>> pair = new Pair<>(method,
107 Pair<Executabl
[all...]
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/
H A DPair.java37 public class Pair<A, B> { class
42 public Pair(A fst, B snd) { method in class:Pair
48 return "Pair[" + fst + "," + snd + "]";
53 other instanceof Pair<?,?> &&
54 Objects.equals(fst, ((Pair<?,?>)other).fst) &&
55 Objects.equals(snd, ((Pair<?,?>)other).snd);
64 public static <A,B> Pair<A,B> of(A a, B b) {
65 return new Pair<>(a,b);
/openjdk10/jdk/src/java.base/share/classes/java/util/concurrent/atomic/
H A DAtomicStampedReference.java55 private static class Pair<T> { class in class:AtomicStampedReference
58 private Pair(T reference, int stamp) { method in class:AtomicStampedReference.Pair
62 static <T> Pair<T> of(T reference, int stamp) {
63 return new Pair<T>(reference, stamp);
67 private volatile Pair<V> pair;
77 pair = Pair.of(initialRef, initialStamp);
107 Pair<V> pair = this.pair;
152 Pair<V> current = pair;
158 casPair(current, Pair.of(newReference, newStamp)));
168 Pair<
[all...]
H A DAtomicMarkableReference.java55 private static class Pair<T> { class in class:AtomicMarkableReference
58 private Pair(T reference, boolean mark) { method in class:AtomicMarkableReference.Pair
62 static <T> Pair<T> of(T reference, boolean mark) {
63 return new Pair<T>(reference, mark);
67 private volatile Pair<V> pair;
77 pair = Pair.of(initialRef, initialMark);
107 Pair<V> pair = this.pair;
152 Pair<V> current = pair;
158 casPair(current, Pair.of(newReference, newMark)));
168 Pair<
[all...]
/openjdk10/test/lib/jdk/test/lib/util/
H A DPair.java29 * Pair - a two element tuple
34 public class Pair<F, S> { class
38 public Pair(F first, S second) { method in class:Pair
50 if (other instanceof Pair<?, ?>) {
51 Pair<?, ?> otherPair = (Pair<?, ?>) other;
H A DTriple.java36 private final Pair<F, Pair<S, T>> container;
46 container = new Pair<>(first, new Pair<>(second, third));
/openjdk10/langtools/test/tools/javac/classfiles/attributes/annotations/
H A DAnnotationsTestBase.java43 private static final TestAnnotationInfo.Pair[] elementValues = {
44 new TestAnnotationInfo.Pair("booleanValue", new TestAnnotationInfo.TestBooleanElementValue(true)),
45 new TestAnnotationInfo.Pair("byteValue", new TestAnnotationInfo.TestIntegerElementValue('B', 83)),
46 new TestAnnotationInfo.Pair("charValue", new TestAnnotationInfo.TestCharElementValue('H')),
47 new TestAnnotationInfo.Pair("shortValue", new TestAnnotationInfo.TestIntegerElementValue('S', 14)),
48 new TestAnnotationInfo.Pair("intValue", new TestAnnotationInfo.TestIntegerElementValue('I', 18)),
49 new TestAnnotationInfo.Pair("longValue", new TestAnnotationInfo.TestLongElementValue(14)),
50 new TestAnnotationInfo.Pair("floatValue", new TestAnnotationInfo.TestFloatElementValue(-1)),
51 new TestAnnotationInfo.Pair("doubleValue", new TestAnnotationInfo.TestDoubleElementValue(-83)),
52 new TestAnnotationInfo.Pair("stringValu
[all...]
/openjdk10/hotspot/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/
H A DPair.java30 public class Pair<L, R> { class
35 public Pair() { method in class:Pair
38 public Pair(L l, R r) { method in class:Pair
61 if (o == null || !(o instanceof Pair)) {
64 Pair<?,?> obj = (Pair<?,?>) o;
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DWeakPairMap.java47 private final ConcurrentHashMap<Pair<K1, K2>, V> map = new ConcurrentHashMap<>();
62 return map.containsKey(Pair.lookup(k1, k2));
84 return map.get(Pair.lookup(k1, k2));
104 return map.put(Pair.weak(k1, k2, queue), v);
123 return map.putIfAbsent(Pair.weak(k1, k2, queue), v);
157 Pair.weak(k1, k2, queue),
197 private interface Pair<K1, K2> { interface in class:WeakPairMap
199 static <K1, K2> Pair<K1, K2> weak(K1 k1, K2 k2,
204 static <K1, K2> Pair<K1, K2> lookup(K1 k1, K2 k2) {
226 static boolean equals(Object first, Object second, Pair<
[all...]
/openjdk10/langtools/test/tools/javac/generics/
H A DNonlinear.java49 // static <A> Pair <A,A> duplicate (A x) {
50 // return new Pair<A,A> (x,x);
60 static <A,B extends Ref<A>> Pair<Ref<A>,B> duplicate (B x) {
61 return new Pair<Ref<A>,B> (x,x);
71 Pair <Ref<A>, Ref<B>> p = duplicate (build ());
95 class Pair<A,B> { class
100 Pair (A fst, B snd) { this.fst = fst; this.snd = snd; } method in class:Pair
H A DParametricException.java69 class Pair<T,U> { class
72 Pair(T first, U second) { method in class:Pair
91 return bool.accept(new AChurchBoolean.IVisitor<AChurchBoolean, Pair<File, byte[]>, IOException>() {
92 public AChurchBoolean caseTrue(Pair<File, byte[]> parameter) throws IOException {
98 public AChurchBoolean caseFalse(Pair<File, byte[]> parameter) throws IOException {
101 }, new Pair<File, byte[]>(file, output));
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.debug/src/org/graalvm/compiler/debug/
H A DCounterKeyImpl.java25 import org.graalvm.util.Pair;
39 public Pair<String, String> toCSVFormat(long value) {
40 return Pair.create(String.valueOf(value), "");
H A DMetricKey.java27 import org.graalvm.util.Pair;
49 Pair<String, String> toCSVFormat(long value);
/openjdk10/hotspot/test/testlibrary/jittester/src/jdk/test/lib/jittester/factories/
H A DBinaryStringPlusFactory.java26 import jdk.test.lib.util.Pair;
45 protected Pair<Type, Type> generateTypes() {
46 return new Pair<>(resultType, resultType);
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/util/xml/impl/
H A DPair.java35 public class Pair { class
48 public Pair list;
50 public Pair next;
/openjdk10/hotspot/src/share/tools/IdealGraphVisualizer/Data/test/unit/src/com/sun/hotspot/igv/data/
H A DPairTest.java57 * Test of getLeft method, of class Pair.
61 Pair p = new Pair();
67 Pair<Integer, Integer> p2 = new Pair(1, 2);
75 Pair p3 = new Pair(1, 2);
/openjdk10/jdk/test/javax/management/Introspector/
H A DAnnotationTest.java91 public static @interface Pair { interface in class:AnnotationTest
118 /* We use the annotation @Pair(x = 3, y = "foo") everywhere, and this is
141 @Pair(x = 3, y = "foo")
143 @Pair(x = 3, y = "foo")
154 @Pair(x = 3, y = "foo")
157 @Pair(x = 3, y = "foo")
161 @Pair(x = 3, y = "foo")
163 @Pair(x = 3, y = "foo")
167 @Pair(x = 3, y = "foo")
170 @Pair(
[all...]

Completed in 182 milliseconds

12345