Package com.clover.sdk.v3.order
Class LineItemPercent
- java.lang.Object
-
- com.clover.sdk.v3.order.LineItemPercent
-
- All Implemented Interfaces:
Parcelable
public class LineItemPercent extends Object implements Parcelable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<LineItemPercent>
CREATOR
static LineItemPercent
ONE_HUNDRED
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description LineItemPercent(int split)
LineItemPercent(long longValue)
LineItemPercent(long divisor, long dividend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
com.clover.core.internal.calc.Decimal
getValue()
boolean
isFractional()
long
longValue()
long
multiply(long value)
String
toDisplayString()
String
toString()
void
writeToParcel(Parcel out, int flags)
-
-
-
Field Detail
-
ONE_HUNDRED
public static final LineItemPercent ONE_HUNDRED
-
CREATOR
public static final Parcelable.Creator<LineItemPercent> CREATOR
-
-
Method Detail
-
longValue
public long longValue()
-
getValue
public com.clover.core.internal.calc.Decimal getValue()
-
isFractional
public boolean isFractional()
-
toDisplayString
public String toDisplayString()
-
multiply
public long multiply(long value)
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel out, int flags)
- Specified by:
writeToParcel
in interfaceParcelable
-
-