FirstType - Type of the first object in the pair.SecondType - Type of the second object in the pair.public interface Pair<FirstType,SecondType>
extends java.io.Serializable
Pair interface defines the functionality of an object that
contains a pair of other objects inside of it.| Modifier and Type | Method and Description |
|---|---|
FirstType |
getFirst()
Gets the first object.
|
SecondType |
getSecond()
Gets the second object.
|
FirstType getFirst()
SecondType getSecond()