Package jade
Class JadePrimitivePair<T,V>
java.lang.Object
jade.JadePrimitivePair<T,V>
Stores a pair of primitives for Jade.
- Since:
- 2023-02
-
Constructor Summary
ConstructorDescriptionConstructor for the JadePrimitivePair that assigns both first and second to null.JadePrimitivePair
(T first, V second) Takes in to generically typed parameters and assigns them to first and second. -
Method Summary
-
Constructor Details
-
JadePrimitivePair
public JadePrimitivePair()Constructor for the JadePrimitivePair that assigns both first and second to null. -
JadePrimitivePair
Takes in to generically typed parameters and assigns them to first and second.- Parameters:
first
- first valuesecond
- second value
-
-
Method Details
-
getFirst
Gets the value in first.- Returns:
- T
-
setFirst
Sets the value of first.- Parameters:
first
- first value
-
getSecond
Gets the value in second.- Returns:
- V
-
setSecond
Sets the value of second.- Parameters:
second
- second value
-