Constructor and Description |
---|
Items() |
Modifier and Type | Method and Description |
---|---|
static java.math.BigDecimal |
basisQuantity(Item item)
Extract the Items Basis Quantity in a safe way.
|
static java.util.List<Item> |
filter(java.util.List<Item> items,
com.google.common.base.Predicate<Item> predicate)
Filters list of
Item using given Predicate |
static java.util.List<Item> |
purchasableItemsOnly(java.util.List<Item> items)
Removes all non-purchasable items (e.g.
|
public Items()
public static java.math.BigDecimal basisQuantity(Item item)
Extract the Items Basis Quantity in a safe way.
item
- public static java.util.List<Item> filter(java.util.List<Item> items, com.google.common.base.Predicate<Item> predicate)
Filters list of Item
using given Predicate
items
- predicate
- public static java.util.List<Item> purchasableItemsOnly(java.util.List<Item> items)
Removes all non-purchasable items (e.g. text information only item etc.)
items
- Copyright © 2014-2018 Konik.io. All Rights Reserved.