Package Struct
Class Triple<A,B,C>
java.lang.Object
Struct.Triple<A,B,C>
- Type Parameters:
A
- the type of the first element.B
- the type of the second element.C
- the type of the third element.
The
Triple
class stores three related objects of potentially different types.
This is a simple generic container for three elements.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Sahasrad Chippa
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
a
The value stored as the first element. -
b
The value stored as the second element. -
c
The value stored as the third element.
-
-
Constructor Details
-
Triple
public Triple()Constructs a defaultTriple
with all elements initialized tonull
. -
Triple
-
-
Method Details
-
toString
-
toString
Returns a string representation using custom specified delimiters.- Parameters:
prefix
- the prefix stringdelimiter
- the delimiter between each elementsuffix
- the suffix string- Returns:
- a formatted string containing the triple's elements
-