public interface SimplePair<LHS,RHS>
A pair of things, with a left and a right hand side (or left and right).
| Modifier and Type | Method and Description |
|---|---|
static <LHS,RHS> SimplePair<LHS,RHS> |
create(LHS lhs,
RHS rhs)
Returns a new Pair of given type with default description.
|
static <LHS,RHS> SimplePair<LHS,RHS> |
create(LHS lhs,
RHS rhs,
String description)
Creates a new Pair of given type with given description.
|
String |
getDescription()
Returns the description of an object.
|
LHS |
left()
Returns the value of the left hand side of the pair.
|
LHS |
lhs()
Returns the value of the left hand side of the pair.
|
RHS |
rhs()
Returns the value of the right hand side of the pair.
|
RHS |
right()
Returns the value of the right hand side of the pair.
|
RHS rhs()
Returns the value of the right hand side of the pair.
RHS right()
Returns the value of the right hand side of the pair.
LHS lhs()
Returns the value of the left hand side of the pair.
LHS left()
Returns the value of the left hand side of the pair.
String getDescription()
Returns the description of an object.
static <LHS,RHS> SimplePair<LHS,RHS> create(LHS lhs, RHS rhs)
Returns a new Pair of given type with default description.
LHS - type for left hand siteRHS - type for right hand siterhs - right hand side of the pairlhs - left hand side of the pairstatic <LHS,RHS> SimplePair<LHS,RHS> create(LHS lhs, RHS rhs, String description)
Creates a new Pair of given type with given description.
LHS - type for left hand siteRHS - type for right hand siterhs - right hand side of the pairlhs - left hand side of the pairdescription - description of the pairCopyright © 2016–2017. All rights reserved.