public class TagUtils
extends java.lang.Object
| Constructor and Description |
|---|
TagUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.Multimap<java.lang.String,PathOperation> |
groupOperationsByTag(java.util.List<PathOperation> allOperations,
java.util.Comparator<PathOperation> operationOrdering)
Groups the operations by tag.
|
static java.util.Map<java.lang.String,io.swagger.models.Tag> |
toSortedMap(java.util.List<io.swagger.models.Tag> tags,
java.util.Comparator<java.lang.String> comparator)
Converts the global Tag list into a Map where the tag name is the key and the Tag the value.
|
public static java.util.Map<java.lang.String,io.swagger.models.Tag> toSortedMap(java.util.List<io.swagger.models.Tag> tags,
java.util.Comparator<java.lang.String> comparator)
tags - the List of tagscomparator - the comparator to use.public static com.google.common.collect.Multimap<java.lang.String,PathOperation> groupOperationsByTag(java.util.List<PathOperation> allOperations, java.util.Comparator<PathOperation> operationOrdering)
allOperations - all operationsoperationOrdering - comparator for operations, for a given tag