| Constructor and Description |
|---|
SimplePrefixSet(Collection<String> prefixes)
Constructs the prefix set with the given collection of prefix strings to test.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPrefixOf(String toMatch)
Indicates whether this set contains a prefix of the given string.
|
static SimplePrefixSet |
of(String... prefixes)
Constructs a prefix set with the given set of prefixes to test.
|
public SimplePrefixSet(Collection<String> prefixes)
prefixes - the prefixes.public static SimplePrefixSet of(String... prefixes)
prefixes - the prefixes.public boolean containsPrefixOf(String toMatch)
PrefixSetcontainsPrefixOf in interface PrefixSettoMatch - the string to test for a prefix of.true if any of the strings in this set is a prefix of the given string.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.