public class CollectionRecipe extends AbstractRecipe
Modifier and Type | Class and Description |
---|---|
private static class |
CollectionRecipe.UpdateCollection |
private static class |
CollectionRecipe.UpdateList |
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Object> |
list |
private java.util.EnumSet<Option> |
options |
private java.lang.Class |
typeClass |
private java.lang.String |
typeName |
Constructor and Description |
---|
CollectionRecipe() |
CollectionRecipe(java.lang.Class type) |
CollectionRecipe(java.util.Collection<?> collection) |
CollectionRecipe(CollectionRecipe collectionRecipe) |
CollectionRecipe(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object value) |
void |
addAll(java.util.Collection<?> value) |
void |
allow(Option option) |
boolean |
canCreate(java.lang.reflect.Type expectedType) |
void |
disallow(Option option) |
java.util.List<java.lang.Object> |
getAll() |
private java.lang.Class |
getCollection(java.lang.Class type) |
java.util.List<Recipe> |
getConstructorRecipes() |
java.util.List<Recipe> |
getNestedRecipes() |
private java.lang.Class |
getType(java.lang.reflect.Type expectedType) |
protected java.lang.Object |
internalCreate(java.lang.reflect.Type expectedType,
boolean lazyRefAllowed) |
void |
remove(java.lang.Object value) |
void |
removeAll(java.lang.Object value) |
create, create, create, getName, getPriority, setName, toString
private final java.util.List<java.lang.Object> list
private java.lang.String typeName
private java.lang.Class typeClass
private final java.util.EnumSet<Option> options
public CollectionRecipe()
public CollectionRecipe(java.lang.String type)
public CollectionRecipe(java.lang.Class type)
public CollectionRecipe(java.util.Collection<?> collection)
public CollectionRecipe(CollectionRecipe collectionRecipe)
public void allow(Option option)
public void disallow(Option option)
public java.util.List<Recipe> getNestedRecipes()
getNestedRecipes
in interface Recipe
getNestedRecipes
in class AbstractRecipe
public java.util.List<Recipe> getConstructorRecipes()
getConstructorRecipes
in interface Recipe
getConstructorRecipes
in class AbstractRecipe
public boolean canCreate(java.lang.reflect.Type expectedType)
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType, boolean lazyRefAllowed) throws ConstructionException
internalCreate
in class AbstractRecipe
ConstructionException
private java.lang.Class getType(java.lang.reflect.Type expectedType)
private java.lang.Class getCollection(java.lang.Class type)
public void add(java.lang.Object value)
public void addAll(java.util.Collection<?> value)
public void remove(java.lang.Object value)
public void removeAll(java.lang.Object value)
public java.util.List<java.lang.Object> getAll()