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
A lazy extension for ingredients for a list of instances.
-
Constructor Summary
ConstructorDescriptionExtendedIngredientsList
(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients base, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> component, List<T> instances) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
-
Method Details
-
forComponent
protected boolean forComponent(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?> component) -
getComponents
- Specified by:
getComponents
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IMixedIngredients
- Overrides:
getComponents
in classWrappedIngredients
-
getInstances
public <T2> List<T2> getInstances(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T2, ?> ingredientComponent) - Specified by:
getInstances
in interfaceorg.cyclops.commoncapabilities.api.ingredient.IMixedIngredients
- Overrides:
getInstances
in classWrappedIngredients
-