public abstract class Either
extends java.lang.Object
implements java.lang.Iterable<com.google.protobuf.Message>, java.io.Serializable
Modifier | Constructor and Description |
---|---|
protected |
Either(com.google.protobuf.Message value,
int index) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
protected static <T> T |
get(Either either,
int index) |
int |
hashCode() |
protected int |
index()
Obtains a zero-based index of the value.
|
java.util.Iterator<com.google.protobuf.Message> |
iterator() |
protected com.google.protobuf.Message |
value()
Obtains the stored value.
|
protected final com.google.protobuf.Message value()
protected final int index()
protected static <T> T get(Either either, int index)
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final java.util.Iterator<com.google.protobuf.Message> iterator()
iterator
in interface java.lang.Iterable<com.google.protobuf.Message>