public class Item
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Item.Builder |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Item> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
static boolean |
areItemsValid(java.util.Collection<Item> items) |
int |
describeContents() |
java.lang.String |
getCategoryId() |
java.lang.String |
getCurrencyId() |
java.lang.String |
getDescription() |
java.lang.String |
getId() |
static java.math.BigDecimal |
getItemTotalAmount(Item item) |
java.lang.String |
getPictureUrl() |
java.lang.Integer |
getQuantity() |
java.lang.String |
getTitle() |
static java.math.BigDecimal |
getTotalAmountWith(java.lang.Iterable<Item> items) |
java.math.BigDecimal |
getUnitPrice() |
boolean |
hasCardinality() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Item> CREATOR
@Nullable public java.lang.String getId()
@NonNull public java.lang.String getTitle()
@Nullable public java.lang.String getDescription()
@Nullable public java.lang.String getPictureUrl()
@Nullable public java.lang.String getCategoryId()
@NonNull public java.lang.Integer getQuantity()
@Nullable public java.lang.String getCurrencyId()
@NonNull public java.math.BigDecimal getUnitPrice()
public static java.math.BigDecimal getItemTotalAmount(@NonNull Item item)
public boolean hasCardinality()
public static boolean areItemsValid(@NonNull java.util.Collection<Item> items)
public static java.math.BigDecimal getTotalAmountWith(@NonNull java.lang.Iterable<Item> items)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable