Package com.unboundid.util
Class ObjectTrio<F,S,T>
java.lang.Object
com.unboundid.util.ObjectTrio<F,S,T>
- Type Parameters:
F- The type of the first object.S- The type of the second object.T- The type of the third object.
- All Implemented Interfaces:
Serializable
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class ObjectTrio<F,S,T>
extends Object
implements Serializable
This class provides a typed trio of objects. It may be used whenever three
objects are required but only one is allowed (e.g., returning three values
from a method).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionObjectTrio(F first, S second, T third) Creates a new object trio with the provided elements. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the provided object is equal to this object trio.getFirst()Retrieves the first object in this trio.Retrieves the second object in this trio.getThird()Retrieves the third object in this trio.inthashCode()Retrieves a hash code for this object trio.toString()Retrieves a string representation of this object trio.voidtoString(StringBuilder buffer) Appends a string representation of this object trio to the provided buffer.
-
Constructor Details
-
ObjectTrio
Creates a new object trio with the provided elements.- Parameters:
first- The first object in this trio.second- The second object in this trio.third- The third object in this trio.
-
-
Method Details
-
getFirst
Retrieves the first object in this trio.- Returns:
- The first object in this trio.
-
getSecond
Retrieves the second object in this trio.- Returns:
- The second object in this trio.
-
getThird
Retrieves the third object in this trio.- Returns:
- The third object in this trio.
-
hashCode
Retrieves a hash code for this object trio. -
equals
Indicates whether the provided object is equal to this object trio. -
toString
Retrieves a string representation of this object trio. -
toString
Appends a string representation of this object trio to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-