Java org.apache.commons.lang3.tuple Pair fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.lang3.tuple Pair fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.lang3.tuple Pair.

The text is from its open source code.

Subclass

org.apache.commons.lang3.tuple.Pair has subclasses.
Click this link to see all its subclasses.

Implementation

org.apache.commons.lang3.tuple.Pair has the following implementations.
Click this link to see all its implementation.

Constructor

Method

booleanequals(final Object obj)

Compares this pair to another based on the two elements.

Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
LgetKey()

Gets the key from this pair.

This method implements the Map.Entry interface returning the left element as the key.

LgetLeft()

Gets the left element from this pair.

When treated as a key-value pair, this is the key.

RgetRight()

Gets the right element from this pair.

When treated as a key-value pair, this is the value.

RgetValue()

Gets the value from this pair.

This method implements the Map.Entry interface returning the right element as the value.

Pairof(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.

StringtoString()

Returns a String representation of this pair using the format ($left,$right) .