Package oshi.util.tuples
Class Pair<A,B>
java.lang.Object
oshi.util.tuples.Pair<A,B>
- Type Parameters:
A
- Type of the first elementB
- Type of the second element
Convenience class for returning multiple objects from methods.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pair
Create a pair and store two objects.- Parameters:
a
- the first object to storeb
- the second object to store
-
-
Method Details
-
getA
Returns the first stored object.- Returns:
- first object stored
-
getB
Returns the second stored object.- Returns:
- second object stored
-