Class IngredientCollectionDiff<T,M>
java.lang.Object
org.cyclops.cyclopscore.ingredient.collection.diff.IngredientCollectionDiff<T,M>
- Type Parameters:
T
- The instance type.M
- The matching condition parameter.
Data class for a collection of additions and deletions.
-
Constructor Summary
ConstructorDescriptionIngredientCollectionDiff
(IIngredientCollection<T, M> additions, IIngredientCollection<T, M> deletions, boolean completelyEmpty) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
-
Constructor Details
-
IngredientCollectionDiff
public IngredientCollectionDiff(@Nullable IIngredientCollection<T, M> additions, @Nullable IIngredientCollection<T, M> deletions, boolean completelyEmpty)
-
-
Method Details
-
getAdditions
-
getDeletions
-
isCompletelyEmpty
public boolean isCompletelyEmpty()- Returns:
- If the (new) collection that was used to calculate this diff with was empty.
-
hasAdditions
public boolean hasAdditions() -
hasDeletions
public boolean hasDeletions()
-