Modifier and Type | Method and Description |
---|---|
List<Object> |
asList()
View this instance as a list.
|
boolean |
equals(Object obj)
Compare for equality.
|
int |
getSize()
Get the number of values in this tuple.
|
V1 |
getValue1()
Get the first value.
|
int |
hashCode()
Compute hash code.
|
String |
toString() |
public Tuple1(V1 v1)
v1
- the valuepublic V1 getValue1()
Has1
public int getSize()
Tuple
public List<Object> asList()
Tuple
public boolean equals(Object obj)
Tuple
Tuples are equal if they have the same size and the corresponding individual values are equal (or null).
Copyright © 2022. All rights reserved.