Class ExtendedIngredientsList<T,M>

java.lang.Object
org.cyclops.commoncapabilities.api.ingredient.MixedIngredientsAdapter
org.cyclops.integrateddynamics.core.ingredient.WrappedIngredients
org.cyclops.integrateddynamics.core.ingredient.ExtendedIngredientsList<T,M>
Type Parameters:
T - The instance type.
M - The matching condition parameter, may be Void. Instances MUST properly implement the equals method.
All Implemented Interfaces:
Comparable<org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients>, org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients

public class ExtendedIngredientsList<T,M> extends WrappedIngredients
A lazy extension for ingredients for a list of instances.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExtendedIngredientsList(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients base, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> component, List<T> instances)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    forComponent(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> component)
     
    Set<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>>
     
    <T2> List<T2>
    getInstances(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T2,?> ingredientComponent)
     

    Methods inherited from class org.cyclops.commoncapabilities.api.ingredient.MixedIngredientsAdapter

    compareCollection, compareCollection, compareTo, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients

    containsAll, getFirstNonEmpty, isEmpty
  • Constructor Details

    • ExtendedIngredientsList

      public ExtendedIngredientsList(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients base, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> component, List<T> instances)
  • Method Details

    • forComponent

      protected boolean forComponent(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> component)
    • getComponents

      public Set<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>> getComponents()
      Specified by:
      getComponents in interface org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients
      Overrides:
      getComponents in class WrappedIngredients
    • getInstances

      public <T2> List<T2> getInstances(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T2,?> ingredientComponent)
      Specified by:
      getInstances in interface org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients
      Overrides:
      getInstances in class WrappedIngredients