server
1.9.0
jvm
server
/
io.spine.server.tuple
/
Either
Either
public
abstract
class
Either
implements
Iterable
<
T
>
,
Serializable
Abstract base for values that can be one of the possible types.
Inheritors
EitherOf5
EitherOf4
EitherOf3
EitherOf2
Members
Constructors
Either
Link copied to clipboard
protected
void
Either
(
Message value
,
int index
)
Functions
equals
Link copied to clipboard
public
final
boolean
equals
(
Object
obj
)
get
Link copied to clipboard
protected
static
T
get
<
T
>
(
Either
either
,
int index
)
hash
Code
Link copied to clipboard
public
final
int
hashCode
(
)
index
Link copied to clipboard
protected
final
int
index
(
)
Obtains a zero-based index of the value.
iterator
Link copied to clipboard
public
final
Iterator
<
Message
>
iterator
(
)
value
Link copied to clipboard
protected
final
Message
value
(
)
Obtains the stored value.
Inherited functions
for
Each
Link copied to clipboard
public
void
forEach
(
Consumer
<
? extends
Object
>
action
)
spliterator
Link copied to clipboard
public
Spliterator
<
T
>
spliterator
(
)