DATA1TYPE - First type.DATA2TYPE - Second type.public interface IPair<DATA1TYPE,DATA2TYPE> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
DATA1TYPE |
getFirst() |
DATA2TYPE |
getSecond() |
default boolean |
hasFirst() |
default boolean |
hasSecond() |
DATA1TYPE getFirst()
null depending on the
implementation.default boolean hasFirst()
true if getFirst() != nullDATA2TYPE getSecond()
null depending on the
implementation.default boolean hasSecond()
true if getSecond() != nullCopyright © 2017–2020 Philip Helger. All rights reserved.