Package Struct
Class Quad<A,B,C,D>
java.lang.Object
Struct.Quad<A,B,C,D>
- Type Parameters:
A
- the type of the first element.B
- the type of the second element.C
- the type of the third element.D
- the type of the fourth element.
The
Quad
class stores four related objects of potentially different types.
This class serves as a simple container for four elements, often referred to as a quadruple or tuple.- 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. -
d
The value stored as the fourth element.
-
-
Constructor Details
-
Quad
public Quad()Constructs a defaultQuad
with all elements initialized tonull
. -
Quad
-
-
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 quad's elements
-