T
- the concrete type of Tip@LevelUpApi(contract=PUBLIC) public abstract class Tip<T extends Tip<T>> extends Object implements Parcelable
PaymentPreferencesV3
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
abstract int |
getEncodedValue()
Get the encoded tip value which may include an encoding offset.
|
int |
getValue()
Get the value of the tip.
|
int |
hashCode() |
abstract T |
withValue(int value)
Get a copy of the Tip with the specified tip value.
|
void |
writeToParcel(Parcel dest,
int flags) |
public Tip(int value)
value
- the value of the tippublic Tip(Parcel parcel)
parcel
- the Parcel to construct frompublic int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public abstract int getEncodedValue()
public final int getValue()
public abstract T withValue(int value)
value
- the value of the tip