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 Link icon

  • Method Details Link icon

    • getAdditions Link icon

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

      @Nullable public IIngredientCollection<T,M> getDeletions()
    • isCompletelyEmpty Link icon

      public boolean isCompletelyEmpty()
      Returns:
      If the (new) collection that was used to calculate this diff with was empty.
    • hasAdditions Link icon

      public boolean hasAdditions()
    • hasDeletions Link icon

      public boolean hasDeletions()