public class FileNestingBuilder
extends java.lang.Object
NestingTreeStructureProvider
Constructor and Description |
---|
FileNestingBuilder() |
Modifier and Type | Method and Description |
---|---|
static Couple<java.lang.Boolean> |
checkMatchingAsParentOrChild(ProjectViewFileNestingService.NestingRule rule,
java.lang.String fileName)
Returns true if the rule applies to the file [as parent; as child] pair
|
static FileNestingBuilder |
getInstance() |
java.util.Collection<ProjectViewFileNestingService.NestingRule> |
getNestingRules()
Returns all possible nesting rules, including transitive rules
|
<T> MultiMap<T,T> |
mapParentToChildren(java.util.Collection<? extends T> nodes,
java.util.function.Function<? super T,java.lang.String> fileNameFunc) |
public static FileNestingBuilder getInstance()
public java.util.Collection<ProjectViewFileNestingService.NestingRule> getNestingRules()
public <T> MultiMap<T,T> mapParentToChildren(java.util.Collection<? extends T> nodes, java.util.function.Function<? super T,java.lang.String> fileNameFunc)
public static Couple<java.lang.Boolean> checkMatchingAsParentOrChild(ProjectViewFileNestingService.NestingRule rule, java.lang.String fileName)