public class RegexUtils
extends java.lang.Object
| Constructor and Description |
|---|
RegexUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Multimap<java.lang.String,PathOperation> |
groupOperationsByRegex(java.util.List<PathOperation> allOperations,
java.util.regex.Pattern headerPattern)
Groups the operations by regex group.
|
static java.lang.String[] |
toSortedArray(java.util.Set<java.lang.String> groups)
Alphabetically sort the list of groups
|
public static java.lang.String[] toSortedArray(java.util.Set<java.lang.String> groups)
groups - List of available groupspublic static com.google.common.collect.Multimap<java.lang.String,PathOperation> groupOperationsByRegex(java.util.List<PathOperation> allOperations, java.util.regex.Pattern headerPattern)
allOperations - all operationsheaderPattern - regex pattern used for determining headers