/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/utils/ |
Pair.java | 4 * Simply a pair of objects. 8 public class Pair<A, B> { 12 public Pair(A a, B b) {
|
/frameworks/av/media/img_utils/include/img_utils/ |
Pair.h | 26 * Generic pair utility class. Nothing special here. 29 class ANDROID_API Pair { 34 Pair() {} 36 Pair(const Pair& o) : first(o.first), second(o.second) {} 38 Pair(const F& f, const S& s) : first(f), second(s) {}
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/ |
Pair.java | 21 public class Pair<T1, T2> { 25 public Pair(final T1 first, final T2 second) { 39 if (!(o instanceof Pair)) return false; 40 Pair<?, ?> p = (Pair<?, ?>)o;
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
Pair.java | 13 * A pair of objects: first and second. 19 public class Pair<F, S> { 23 protected Pair(F first, S second) { 29 * Creates a pair object 32 * @return The pair object. 34 public static <F, S> Pair<F, S> of(F first, S second) { 36 throw new IllegalArgumentException("Pair.of requires non null values."); 38 return new Pair<F, S>(first, second); 46 if (!(other instanceof Pair)) { 49 Pair<?, ?> rhs = (Pair<?, ?>) other [all...] |
/frameworks/base/core/java/android/util/ |
Pair.java | 26 public class Pair<F, S> { 31 * Constructor for a Pair. 33 * @param first the first object in the Pair 34 * @param second the second object in the pair 36 public Pair(F first, S second) { 45 * @param o the {@link Pair} to which this one is to be checked for equality 46 * @return true if the underlying objects of the Pair are both considered 51 if (!(o instanceof Pair)) { 54 Pair<?, ?> p = (Pair<?, ?>) o [all...] |
/external/conscrypt/testing/src/main/java/tests/util/ |
Pair.java | 18 * Pair of typed values. 25 public class Pair<F, S> { 28 private Pair(F first, S second) { 33 * Gets the pair consisting of the two provided values. 38 public static <F, S> Pair<F, S> of(F first, S second) { 39 return new Pair<F, S>(first, second); 42 * Gets the first value from this pair. 50 * Gets the second value from this pair. 59 return "Pair[" + mFirst + ", " + mSecond + "]"; 81 Pair other = (Pair) obj [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
Pair.java | 12 * A pair of objects: first and second. 17 public class Pair<F, S> { 21 protected Pair(F first, S second) { 27 * Creates a pair object 30 * @return The pair object. 32 public static <F, S> Pair<F, S> of(F first, S second) { 34 throw new IllegalArgumentException("Pair.of requires non null values."); 36 return new Pair<F, S>(first, second); 44 if (!(other instanceof Pair)) { 47 Pair<?, ?> rhs = (Pair<?, ?>) other [all...] |
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
Pair.java | 27 * Simply a pair of objects. 32 public class Pair<A, B> { 36 public Pair(A a, B b) { 46 Pair<?, ?> pair = (Pair<?, ?>) o; 48 if (a != null ? !a.equals(pair.a) : pair.a != null) return false; 49 if (b != null ? !b.equals(pair.b) : pair.b != null) return false [all...] |
/external/libmojo/mojo/public/java/system/src/org/chromium/mojo/system/ |
Pair.java | 9 * A pair of object. 14 public class Pair<F, S> { 22 * @param first the first element of the pair. 23 * @param second the second element of the pair. 25 public Pair(F first, S second) { 42 if (!(o instanceof Pair)) { 45 Pair<?, ?> p = (Pair<?, ?>) o; 58 * Helper method for creating a pair. 60 * @param a the first element of the pair [all...] |
/external/llvm/include/llvm/ADT/ |
DenseMapInfo.h | 167 struct DenseMapInfo<std::pair<T, U> > { 168 typedef std::pair<T, U> Pair; 172 static inline Pair getEmptyKey() { 176 static inline Pair getTombstoneKey() { 180 static unsigned getHashValue(const Pair& PairVal) { 193 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|
/external/llvm/lib/Transforms/ObjCARC/ |
ProvenanceAnalysis.cpp | 169 std::pair<CachedResultsTy::iterator, bool> Pair = 171 if (!Pair.second) 172 return Pair.first->second;
|
/external/llvm/tools/llvm-dwp/ |
DWPStringPool.h | 44 auto Pair = Pool.insert(std::make_pair(Str, Offset)); 45 if (Pair.second) { 51 return Pair.first->second;
|
/external/llvm/unittests/ADT/ |
PointerIntPairTest.cpp | 23 PointerIntPair<S *, 2> Pair(&s, 1U); 24 EXPECT_EQ(&s, Pair.getPointer()); 25 EXPECT_EQ(1U, Pair.getInt()); 27 Pair.setInt(2); 28 EXPECT_EQ(&s, Pair.getPointer()); 29 EXPECT_EQ(2U, Pair.getInt()); 31 Pair.setPointer(nullptr); 32 EXPECT_EQ(nullptr, Pair.getPointer()); 33 EXPECT_EQ(2U, Pair.getInt()); 35 Pair.setPointerAndInt(&s, 3U) 90 PointerIntPair<Fixnum31, 1, bool, FixnumPointerTraits> pair; local [all...] |
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
AttrData.java | 8 private final List<Pair> pairs; 10 public AttrData(String name, String format, List<Pair> pairs) { 26 for (Pair pair : pairs) { 27 if (pair.name.equals(key)) { 28 return pair.value; 38 for (Pair pair : pairs) { 39 if (pair.value.equals(value)) { 54 for (Pair p : pairs) [all...] |
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/ |
Pair.java | 25 public class Pair<F, S> { 29 public Pair(F first, S second) { 36 if (!(o instanceof Pair)) { 39 Pair<?, ?> p = (Pair<?, ?>) o; 48 public static <A, B> Pair <A, B> create(A a, B b) { 49 return new Pair<>(a, b);
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
DenseMapInfo.h | 134 struct DenseMapInfo<std::pair<T, U> > { 135 typedef std::pair<T, U> Pair; 139 static inline Pair getEmptyKey() { 143 static inline Pair getTombstoneKey() { 147 static unsigned getHashValue(const Pair& PairVal) { 160 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
DenseMapInfo.h | 137 struct DenseMapInfo<std::pair<T, U> > { 138 typedef std::pair<T, U> Pair; 142 static inline Pair getEmptyKey() { 146 static inline Pair getTombstoneKey() { 150 static unsigned getHashValue(const Pair& PairVal) { 163 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|
/external/testng/src/main/java/org/testng/internal/collections/ |
Pair.java | 9 public class Pair<A, B> { 13 public Pair(A first, B second) { 46 final Pair other = (Pair) obj; 66 public static <A, B> Pair<A, B> create(A first, B second) { 70 public static <A, B> Pair<A, B> of(A a, B b) { 71 return new Pair<>(a, b);
|
/frameworks/base/libs/hwui/utils/ |
Pair.h | 26 struct Pair { 30 Pair() {} 31 Pair(const Pair& o) : first(o.first), second(o.second) {} 32 Pair(const F& f, const S& s) : first(f), second(s) {} 42 struct trait_trivial_ctor<uirenderer::Pair<F, S> > { 46 struct trait_trivial_dtor<uirenderer::Pair<F, S> > { 50 struct trait_trivial_copy<uirenderer::Pair<F, S> > { 54 struct trait_trivial_move<uirenderer::Pair<F, S> > {
|
/frameworks/support/compat/src/main/java/androidx/core/util/ |
Pair.java | 27 public class Pair<F, S> { 32 * Constructor for a Pair. 34 * @param first the first object in the Pair 35 * @param second the second object in the pair 37 public Pair(@Nullable F first, @Nullable S second) { 46 * @param o the {@link Pair} to which this one is to be checked for equality 47 * @return true if the underlying objects of the Pair are both considered 52 if (!(o instanceof Pair)) { 55 Pair<?, ?> p = (Pair<?, ?>) o [all...] |
/frameworks/wilhelm/src/ut/ |
OpenSLESUT.c | 36 } Pair; 46 static Pair pairs[] = { 114 Pair *p; 115 const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])];
|
/libcore/support/src/test/java/tests/util/ |
Pair.java | 20 * Pair of typed values. 27 public class Pair<F, S> { 31 private Pair(F first, S second) { 37 * Gets the pair consisting of the two provided values. 42 public static <F, S> Pair<F, S> of(F first, S second) { 43 return new Pair<F, S>(first, second); 47 * Gets the first value from this pair. 56 * Gets the second value from this pair. 66 return "Pair[" + mFirst + ", " + mSecond + "]"; 90 Pair other = (Pair) obj [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
TestActivity.java | 21 import android.util.Pair; 30 public TestEventListener<Pair<Integer, Intent>> setResult; 31 public TestEventListener<Pair<Intent, Integer>> startActivityForResult; 49 setResult.accept(Pair.create(resultCode, intent)); 54 startActivityForResult.accept(Pair.create(intent, requestCode));
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
DenseMapInfo.h | 155 struct DenseMapInfo<std::pair<T, U> > { 156 typedef std::pair<T, U> Pair; 160 static inline Pair getEmptyKey() { 164 static inline Pair getTombstoneKey() { 168 static unsigned getHashValue(const Pair& PairVal) { 181 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
DenseMapInfo.h | 155 struct DenseMapInfo<std::pair<T, U> > { 156 typedef std::pair<T, U> Pair; 160 static inline Pair getEmptyKey() { 164 static inline Pair getTombstoneKey() { 168 static unsigned getHashValue(const Pair& PairVal) { 181 static bool isEqual(const Pair &LHS, const Pair &RHS) {
|