MCPcopy Create free account
hub / github.com/apache/commons-lang / of

Method of

src/main/java/org/apache/commons/lang3/tuple/Pair.java:79–81  ·  view source on GitHub ↗

Creates an immutable pair of two objects inferring the generic types. @param The left element type. @param The right element type. @param left the left element, may be null. @param right the right element, may be null. @return an immutable pair formed from the two parameters, not null.

(final L left, final R right)

Source from the content-addressed store, hash-verified

77 * @return an immutable pair formed from the two parameters, not null.
78 */
79 public static <L, R> Pair<L, R> of(final L left, final R right) {
80 return ImmutablePair.of(left, right);
81 }
82
83 /**
84 * Creates an immutable pair from a map entry.

Callers 15

testOfNonNullMapEntryMethod · 0.95
testAcceptMethod · 0.95
testApplyMethod · 0.95
testEqualsAnonynousMethod · 0.95
testPairOfMapEntryMethod · 0.95
testPairOfObjectsMethod · 0.95

Calls 1

ofMethod · 0.95

Tested by 14

testOfNonNullMapEntryMethod · 0.76
testAcceptMethod · 0.76
testApplyMethod · 0.76
testEqualsAnonynousMethod · 0.76
testPairOfMapEntryMethod · 0.76
testPairOfObjectsMethod · 0.76