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, toStringprivate 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 RecipegetNestedRecipes in class AbstractRecipepublic java.util.List<Recipe> getConstructorRecipes()
getConstructorRecipes in interface RecipegetConstructorRecipes in class AbstractRecipepublic boolean canCreate(java.lang.reflect.Type expectedType)
protected java.lang.Object internalCreate(java.lang.reflect.Type expectedType,
boolean lazyRefAllowed)
throws ConstructionException
internalCreate in class AbstractRecipeConstructionExceptionprivate 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()