org.apache.logging.log4j.core.util
Class SetUtils
java.lang.Object
org.apache.logging.log4j.core.util.SetUtils
public final class SetUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.