Class ExtendedIngredientsSingle<T,M>
java.lang.Object
org.cyclops.commoncapabilities.api.ingredient.MixedIngredientsAdapter
org.cyclops.integrateddynamics.core.ingredient.WrappedIngredients
org.cyclops.integrateddynamics.core.ingredient.ExtendedIngredientsSingle<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 single instance.
-
Constructor Summary
ConstructorDescriptionExtendedIngredientsSingle
(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients base, int targetIndex, org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> component, T instance) -
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
-
ExtendedIngredientsSingle
-
-
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
-