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.

public class IngredientCollectionDiff<T,M> extends Object
Data class for a collection of additions and deletions.
  • Constructor Details

  • Method Details

    • getAdditions

      @Nullable public IIngredientCollection<T,M> getAdditions()
    • getDeletions

      @Nullable public IIngredientCollection<T,M> 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()