| Modifier and Type | Field and Description |
|---|---|
| private static final char | |
| private static final Character | |
| private final List | |
| private static final Character | |
| private static final char |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public void | |
| private static void | |
| public void | |
| public boolean | |
| public boolean | |
| public static long | countEffectiveDelimiters(@NonNull String keywordString, @NonNull Character delimiter)
Counts how often the delimiter occurs as an effective delimiter, i.e., at top level: not escaped and not inside braces. |
| public KeywordList | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Keyword | |
| public String | getAsString(Character delimiter)
Keywords are separated by the given delimiter and an additional space, i.e. "one, two". |
| public int | |
| public boolean | |
| public Iterator | |
| public static KeywordList | |
| public static KeywordList | |
| public static KeywordList | |
| public static KeywordList | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| private static void | |
| public static String | |
| private static String | |
| public static String | |
| public int | |
| private static List | |
| public Stream | |
| public String | |
| public Set |
| CLOSING_BRACE | back to summary |
|---|---|
| private static final char CLOSING_BRACE | |
| DEFAULT_KEYWORD_DELIMITER | back to summary |
|---|---|
| private static final Character DEFAULT_KEYWORD_DELIMITER | |
| keywordChains | back to summary |
|---|---|
| private final List<Keyword> keywordChains | |
| NO_KEYWORD_DELIMITER | back to summary |
|---|---|
| private static final Character NO_KEYWORD_DELIMITER | |
| OPENING_BRACE | back to summary |
|---|---|
| private static final char OPENING_BRACE | |
| KeywordList | back to summary |
|---|---|
| public KeywordList() | |
| KeywordList | back to summary |
|---|---|
| public KeywordList(Collection<Keyword> keywordChains) | |
| KeywordList | back to summary |
|---|---|
| public KeywordList(List<String> keywordChains) | |
| KeywordList | back to summary |
|---|---|
| public KeywordList(String... keywordChains) | |
| KeywordList | back to summary |
|---|---|
| public KeywordList(Keyword... keywordChains) | |
| add | back to summary |
|---|---|
| public boolean add(Keyword keyword) | |
| add | back to summary |
|---|---|
| public void add(String keywordsString) | |
| addAll | back to summary |
|---|---|
| public void addAll(KeywordList keywordsToAdd) | |
| addTokenIfNotBlank | back to summary |
|---|---|
| private static void addTokenIfNotBlank(List<String> keywordTokens, StringBuilder currentToken) | |
| clear | back to summary |
|---|---|
| public void clear() | |
| contains | back to summary |
|---|---|
| public boolean contains(Keyword o) | |
| contains | back to summary |
|---|---|
| public boolean contains(String keywordString) | |
| countEffectiveDelimiters | back to summary |
|---|---|
| public static long countEffectiveDelimiters(@NonNull String keywordString, @NonNull Character delimiter) Counts how often the delimiter occurs as an effective delimiter, i.e., at top level: not escaped and not inside braces.
Uses the same recognition rules as | |
| createClone | back to summary |
|---|---|
| public KeywordList createClone() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| get | back to summary |
|---|---|
| public Keyword get(int index) | |
| getAsString | back to summary |
|---|---|
| public String getAsString(Character delimiter) Keywords are separated by the given delimiter and an additional space, i.e. "one, two". | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| merge | back to summary |
|---|---|
| public static KeywordList merge(String keywordStringA, String keywordStringB, Character delimiter) | |
| parse | back to summary |
|---|---|
| public static KeywordList parse(@NonNull String keywordString, @NonNull Character delimiter) Parses the keyword list and uses
| |
| parseWithMultipleDelimiters | back to summary |
|---|---|
| public static KeywordList parseWithMultipleDelimiters(@NonNull String keywordString, @NonNull List<Character> delimiters) Parses the keyword list using multiple candidate delimiters. Delimiters are recognized only at top level, not when escaped or inside braces. | |
| parseWithPrioritizedDelimiters | back to summary |
|---|---|
| public static KeywordList parseWithPrioritizedDelimiters(@NonNull String keywordString, @NonNull List<Character> delimiters) Parses the keyword list by inferring a single delimiter using the given priority order. | |
| remove | back to summary |
|---|---|
| public boolean remove(Keyword o) | |
| remove | back to summary |
|---|---|
| public boolean remove(String keywordsString) | |
| removeAll | back to summary |
|---|---|
| public void removeAll(KeywordList keywordsToRemove) | |
| replaceAll | back to summary |
|---|---|
| public void replaceAll(KeywordList keywordsToReplace, @NonNull Keyword newValue) | |
| retainAll | back to summary |
|---|---|
| public void retainAll(KeywordList keywordToRetain) | |
| scanTopLevel | back to summary |
|---|---|
| private static void scanTopLevel(@NonNull String keywordString, @NonNull List<Character> delimiters, @NonNull Consumer<Character> onContent, @NonNull Runnable onDelimiter) Walks the string, reporting each character either as content or as an effective (top-level, unescaped) delimiter. | |
| serialize | back to summary |
|---|---|
| public static String serialize(List<Keyword> keywords, Character delimiter) | |
| serialize | back to summary |
|---|---|
| private static String serialize(List<Keyword> keywords, Character delimiter, String keywordSeparator) | |
| serializeWithSpaces | back to summary |
|---|---|
| public static String serializeWithSpaces(List<Keyword> keywords, Character delimiter) | |
| size | back to summary |
|---|---|
| public int size() | |
| splitByDelimiters | back to summary |
|---|---|
| private static List | |
| stream | back to summary |
|---|---|
| public Stream | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| toStringList | back to summary |
|---|---|
| public Set | |