Package org.openjdk.jmc.common.item
Class ItemCollectionToolkit
- java.lang.Object
-
- org.openjdk.jmc.common.item.ItemCollectionToolkit
-
public class ItemCollectionToolkit extends Object
Toolkit class for working with IItemCollection instances
-
-
Field Summary
Fields Modifier and Type Field Description static IItemCollection
EMPTY
-
Constructor Summary
Constructors Constructor Description ItemCollectionToolkit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IItemCollection
build(Supplier<Stream<IItemIterable>> items)
static IItemCollection
build(Supplier<Stream<IItemIterable>> items, Set<IRange<IQuantity>> chunkRanges)
static IItemCollection
build(Stream<? extends IItem> items)
static IItemCollection
filterIfNotNull(IItemCollection items, IItemFilter filter)
static String
getDescription(IItemCollection items)
static <V> Optional<IItemIterable>
join(IItemCollection items, String withTypeId)
static IItemCollection
merge(Supplier<Stream<IItemCollection>> items)
-
-
-
Field Detail
-
EMPTY
public static final IItemCollection EMPTY
-
-
Method Detail
-
build
public static IItemCollection build(Stream<? extends IItem> items)
-
build
public static IItemCollection build(Supplier<Stream<IItemIterable>> items, Set<IRange<IQuantity>> chunkRanges)
-
build
public static IItemCollection build(Supplier<Stream<IItemIterable>> items)
-
merge
public static IItemCollection merge(Supplier<Stream<IItemCollection>> items)
-
join
public static <V> Optional<IItemIterable> join(IItemCollection items, String withTypeId)
-
getDescription
public static String getDescription(IItemCollection items)
-
filterIfNotNull
public static IItemCollection filterIfNotNull(IItemCollection items, IItemFilter filter)
-
-