Pair

ย ย 
Type๐Ÿ”ต Class
Packageio.github.mrtesz.teszcore.util.tuple
GitHubPair.java
ImplementsCopyable<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

ParameterTypeAnnotationsDescription
formatString@NotNullThe 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)

ValueTypeAnnotationsDescription
leftNot specified (L)ย First value of the pair
rightNot specified (R)ย Second value of the pair

Back to top

Copyright © 2026 Mr_Tesz. All rights reserved

This site uses Just the Docs, a documentation theme for Jekyll.