@Immutable @LevelUpApi(contract=PUBLIC) public final class USCentTip extends Tip<USCentTip>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<USCentTip> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
USCentTip(int value) |
USCentTip(Parcel parcel) |
Modifier and Type | Method and Description |
---|---|
int |
getEncodedValue()
Get the encoded tip value which may include an encoding offset.
|
String |
toString() |
USCentTip |
withValue(int value)
Get a copy of the Tip with the specified tip value.
|
describeContents, equals, getValue, hashCode, writeToParcel
public static final Parcelable.Creator<USCentTip> CREATOR
Parcelable
interface.public USCentTip(int value)
value
- the value of the tippublic USCentTip(Parcel parcel)
parcel
- the Parcel to construct frompublic int getEncodedValue()
Tip
getEncodedValue
in class Tip<USCentTip>
public USCentTip withValue(int value)
Tip