Package com.atlassian.bamboo.util
Class BambooStringUtils.AffixFilteringTree
- java.lang.Object
-
- com.atlassian.bamboo.util.BambooStringUtils.AffixFilteringTree
-
- Enclosing class:
- BambooStringUtils
public static class BambooStringUtils.AffixFilteringTree extends Object
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
Constructors Constructor Description AffixFilteringTree(@NotNull Iterable<String> iterable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Iterable<String>
getWithPrefix(@NotNull String prefix)
@NotNull Iterable<String>
getWithSuffix(@NotNull String suffix)
-