Package org.openrewrite.config
Class CategoryTree<G>
- java.lang.Object
-
- org.openrewrite.config.CategoryTree<G>
-
public class CategoryTree<G> extends java.lang.ObjectA hierarchical listing of recipe categories and the recipes that are contained inside of them.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <G> CategoryTree<G>build()@Nullable CategoryTree<G>getCategory(java.lang.String subcategory)@Nullable CategoryTree<G>getCategory(java.lang.String... subcategories)CategoryTree<G>getCategoryOrThrow(java.lang.String subcategory)CategoryTree<G>getCategoryOrThrow(java.lang.String... subcategories)CategoryDescriptorgetDescriptor()@Nullable RecipeDescriptorgetRecipe(java.lang.String id)java.lang.IntegergetRecipeCount()GgetRecipeGroup(java.lang.String id)java.util.Collection<RecipeDescriptor>getRecipes()java.util.Map<G,java.util.Collection<RecipeDescriptor>>getRecipesByGroup()java.util.Collection<CategoryTree<G>>getSubtrees()CategoryTree<G>putAll(G group, java.lang.Iterable<RecipeDescriptor> recipes, java.lang.Iterable<CategoryDescriptor> categories)CategoryTree<G>putAll(G group, Environment environment)CategoryTree<G>removeAll(G group)
-
-
-
Method Detail
-
build
public static <G> CategoryTree<G> build()
-
getDescriptor
public CategoryDescriptor getDescriptor()
-
getRecipeCount
public java.lang.Integer getRecipeCount()
-
getCategory
@Nullable public @Nullable CategoryTree<G> getCategory(java.lang.String subcategory)
-
getCategory
@Nullable public @Nullable CategoryTree<G> getCategory(java.lang.String... subcategories)
-
getCategoryOrThrow
public CategoryTree<G> getCategoryOrThrow(java.lang.String subcategory)
-
getCategoryOrThrow
public CategoryTree<G> getCategoryOrThrow(java.lang.String... subcategories)
-
getRecipe
@Nullable public @Nullable RecipeDescriptor getRecipe(java.lang.String id)
-
putAll
public CategoryTree<G> putAll(G group, Environment environment)
-
putAll
public CategoryTree<G> putAll(G group, java.lang.Iterable<RecipeDescriptor> recipes, java.lang.Iterable<CategoryDescriptor> categories)
-
removeAll
public CategoryTree<G> removeAll(G group)
-
getRecipes
public java.util.Collection<RecipeDescriptor> getRecipes()
-
getRecipesByGroup
public java.util.Map<G,java.util.Collection<RecipeDescriptor>> getRecipesByGroup()
-
getSubtrees
public java.util.Collection<CategoryTree<G>> getSubtrees()
-
-