Class SetUtils
- java.lang.Object
-
- org.apache.logging.log4j.core.util.SetUtils
-
public final class SetUtils extends Object
Set-related convenience methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
prefixSet(Set<String> set, String prefix)
Extracts the Strings from a Set that start with a given prefix.
-
-
-
Method Detail
-
prefixSet
public static String[] prefixSet(Set<String> set, String prefix)
Extracts the Strings from a Set that start with a given prefix.- Parameters:
set
- a Set of Strings (assumed to all be non-null
)prefix
- the prefix to look for in the string set- Returns:
- an array of the matching strings from the given set
-
-