Package dev.brachtendorf.datastructures
Class Pair<S,U>
- java.lang.Object
-
- dev.brachtendorf.datastructures.Pair<S,U>
-
- Type Parameters:
S- type of the first valueU- type of the second value
- All Implemented Interfaces:
Serializable
public class Pair<S,U> extends Object implements Serializable
A convenience data structure encapsulating 2 values. This class can be used to return two values from a method call and create compound keys/values in other collections.- Since:
- 1.5.4 com.github.kilianB, 1.5.6 implements serializable com.github.kilianB
- Author:
- Kilian
- See Also:
- Serialized Form