Class Tuple<T,U>
- java.lang.Object
-
- com.azure.spring.cloud.context.core.util.Tuple<T,U>
-
- Type Parameters:
T
- The type of the first element in the tuple.U
- The type of the second element in the tuple.
public final class Tuple<T,U> extends Object
Tuple class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
T
getFirst()
Gets the first value.U
getSecond()
Gets the second value.int
hashCode()
static <T,U>
Tuple<T,U>of(T first, U second)
Creates a tuple from two value.
-
-
-
Method Detail
-
of
public static <T,U> Tuple<T,U> of(T first, U second)
Creates a tuple from two value.- Type Parameters:
T
- The type of the first value.U
- The type of the second value.- Parameters:
first
- The first value.second
- The second value.- Returns:
- A new tuple.
-
getFirst
public T getFirst()
Gets the first value.- Returns:
- The first value.
-
getSecond
public U getSecond()
Gets the second value.- Returns:
- The second value.
-
-