Package com.vaadin.flow.internal
Class Pair<U extends Serializable,V extends Serializable>
java.lang.Object
com.vaadin.flow.internal.Pair<U,V>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RouteParam
public class Pair<U extends Serializable,V extends Serializable>
extends Object
implements Serializable
Generic class representing an immutable pair of values.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
Creates a new pair.- Parameters:
u
- the value of the first componentv
- the value of the second component
-
-
Method Details
-
getFirst
Gets the first component of the pair.- Returns:
- the first component of the pair
-
getSecond
Gets the second component of the pair.- Returns:
- the second component of the pair
-