Package com.atlassian.bamboo.util
Class BambooStringUtils.AffixFilteringTree
java.lang.Object
com.atlassian.bamboo.util.BambooStringUtils.AffixFilteringTree
- Enclosing class:
- BambooStringUtils
Class represent efficient way of filtering a set of strings with respect to a prefix or suffix.
For example:
AffixFilteringTree tree = new AffixFilteringTree(ImmutableList.of("abc", "abd", "cbc"));
tree.getWithPrefix("ab"); // [abc, abd]
tree.getWithSuffix("bc"); // [abc, cbc]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWithPrefix
(@NotNull String prefix) getWithSuffix
(@NotNull String suffix)
-
Constructor Details
-
AffixFilteringTree
-
-
Method Details
-
getWithPrefix
-
getWithSuffix
-