Example usage for Java org.apache.commons.lang3.tuple Pair fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | equals(final Object obj) Compares this pair to another based on the two elements. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
L | getKey() Gets the key from this pair. This method implements the Map.Entry interface returning the left element as the key. |
L | getLeft() Gets the left element from this pair. When treated as a key-value pair, this is the key. |
R | getRight() Gets the right element from this pair. When treated as a key-value pair, this is the value. |
R | getValue() Gets the value from this pair. This method implements the Map.Entry interface returning the right element as the value. |
Pair | of(final L left, final R right) Obtains an immutable pair of from two objects inferring the generic types. This factory allows the pair to be created using inference to obtain the generic types. |
String | toString() Returns a String representation of this pair using the format ($left,$right) . |