public interface InventoryTransformation
See InventoryTransformations
for some predefined
transformations
Transformations built from the InventoryTransformation.Builder
use a combination of
Inventory.query(QueryOperation[])
and
Inventory.union(Inventory)
. Thus the transformed inventory will
consist of only slots and will never contain duplicate slots.
Modifier and Type | Interface and Description |
---|---|
static interface |
InventoryTransformation.Builder |
Modifier and Type | Method and Description |
---|---|
static InventoryTransformation.Builder |
builder() |
static InventoryTransformation |
of(QueryOperation... operations)
Creates a new transformation based on QueryOperations.
|
Inventory |
transform(Inventory inventory)
Transforms an Inventory
|
Inventory transform(Inventory inventory)
inventory
- The inventory to transformstatic InventoryTransformation.Builder builder()
static InventoryTransformation of(QueryOperation... operations)
operations
- The QueryOperations