public class Operand extends Object implements PUnion<Operand>, Serializable, Comparable<Operand>, android.os.Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
Operand._Builder |
static class |
Operand._Field |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Operand> |
CREATOR |
static PUnionDescriptor<Operand,Operand._Field> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static Operand._Builder |
builder() |
int |
compareTo(Operand other) |
int |
describeContents() |
PUnionDescriptor<Operand,Operand._Field> |
descriptor() |
boolean |
equals(Object o) |
Object |
get(int key) |
Imaginary |
getImaginary() |
double |
getNumber() |
Operation |
getOperation() |
boolean |
has(int key) |
int |
hashCode() |
boolean |
hasImaginary() |
boolean |
hasNumber() |
boolean |
hasOperation() |
boolean |
isCompact() |
boolean |
isSimple() |
Operand._Builder |
mutate() |
int |
num(int key) |
static PUnionDescriptorProvider<Operand,Operand._Field> |
provider() |
String |
toString() |
Operand._Field |
unionField() |
static Operand |
withImaginary(Imaginary value) |
static Operand |
withNumber(double value) |
static Operand |
withOperation(Operation value) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final PUnionDescriptor<Operand,Operand._Field> kDescriptor
public static final android.os.Parcelable.Creator<Operand> CREATOR
public static Operand withNumber(double value)
public boolean hasOperation()
public Operation getOperation()
public boolean hasNumber()
public double getNumber()
public boolean hasImaginary()
public Imaginary getImaginary()
public Operand._Field unionField()
unionField in interface PUnion<Operand>public int compareTo(Operand other)
compareTo in interface Comparable<Operand>public static PUnionDescriptorProvider<Operand,Operand._Field> provider()
public PUnionDescriptor<Operand,Operand._Field> descriptor()
descriptor in interface PMessage<Operand>descriptor in interface PValue<Operand>public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic Operand._Builder mutate()
public static Operand._Builder builder()
Copyright © 2016. All rights reserved.