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
ConstructorsConstructorDescriptionExtendedIngredientsList(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients base, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> component, List<T> instances) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanforComponent(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getComponentsin interfaceorg.cyclops.commoncapabilities.api.ingredient.IMixedIngredients- Overrides:
getComponentsin classWrappedIngredients
-
getInstances
public <T2> List<T2> getInstances(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T2, ?> ingredientComponent) - Specified by:
getInstancesin interfaceorg.cyclops.commoncapabilities.api.ingredient.IMixedIngredients- Overrides:
getInstancesin classWrappedIngredients
-