Pair
| ย | ย |
|---|---|
| Type | ๐ต Class |
| Package | io.github.mrtesz.teszcore.util.tuple |
| GitHub | Pair.java |
| Implements | Copyable<Pair<L, Rยป |
Description
Utility class pair
Constructor
Pair(L left, R right);
Constructs a new Pair instance
| Parameter | Type | Annotations | Description | |:โโโ:|:โโโโโโ-:|:โโโโ:|โโโโโโโโโ| | left | Not specified (L) | | First value of the pair | | right | Not specified (R) | | Second value of the pair | โ
Methods
toString
String toString(String format);
Formats the pair using String.format
| Parameter | Type | Annotations | Description |
|---|---|---|---|
format | String | @NotNull | The format String |
Returns: String โ the values formatted with the provided format string
copy
implemented from Copyable
T: Pair<L, R>
Values
All of this values can be set with set$VALUE_NAME$($VALUE_TYPE$) and get with get$VALUE_NAME$($VALUE_TYPE$) (with capitalized value names)
| Value | Type | Annotations | Description |
|---|---|---|---|
left | Not specified (L) | ย | First value of the pair |
right | Not specified (R) | ย | Second value of the pair |