Interface IIngredientCollapsedCollection<T,M>
- Type Parameters:
T
- The instance type.M
- The matching condition parameter.
- All Superinterfaces:
IIngredientCollection<T,
,M> IIngredientCollectionLike<T,
,M, T> Iterable<T>
- All Known Subinterfaces:
IIngredientCollapsedCollectionMutable<T,
M>
- All Known Implementing Classes:
IngredientCollectionPrototypeMap
,IngredientCollectionQuantitativeGrouper
,IngredientCollectionSingleClassifiedCollapsed
An ingredient collection that does not strictly adhere to the
IIngredientCollection
interface
and will collapse ingredients that are equal, ignoring their quantity.
This collapsing will result in quantities of equal ingredients to be summed up.
For example, equal ItemStacks with different counts can be added,
but only a single ItemStack will be present in the collection,
with as count the sum of the given counts.-
Method Summary
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection
contains, contains, containsAll, containsAll, count, iterator, parallelStream, spliterator, stream, toArray
Methods inherited from interface org.cyclops.cyclopscore.ingredient.collection.IIngredientCollectionLike
equals, getComponent, hashCode, isEmpty, size, toString