Class SetUtils
- java.lang.Object
-
- org.apache.logging.log4j.core.util.SetUtils
-
public final class SetUtils extends java.lang.Object
Set-related convenience methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String[]
prefixSet(java.util.Set<java.lang.String> set, java.lang.String prefix)
Extracts the Strings from a Set that start with a given prefix.
-
-
-
Method Detail
-
prefixSet
public static java.lang.String[] prefixSet(java.util.Set<java.lang.String> set, java.lang.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
-
-