Class OperationMap
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,,- Operation> - NavigableMap<String,,- Operation> - SortedMap<String,- Operation> 
The OperationMap is a specialized TreeMap that represents the operations available on a single path in Swagger 2.0. It forces entries to be sorted in a specific order to ensure consistent output. This map is used within PathItem objects to define the HTTP methods and their corresponding operations.
Swagger Specification:
The OperationMap represents the operations field in a Path Item Object, where each key is an HTTP method and each value is an Operation object. The supported HTTP methods are:
- get (- Operation) - A definition of a GET operation
- put (- Operation) - A definition of a PUT operation
- post (- Operation) - A definition of a POST operation
- delete (- Operation) - A definition of a DELETE operation
- options (- Operation) - A definition of an OPTIONS operation
- head (- Operation) - A definition of a HEAD operation
- patch (- Operation) - A definition of a PATCH operation
Forces entries to be sorted in the following order:
- GET 
- PUT 
- POST 
- DELETE 
- OPTIONS 
- HEAD 
- PATCH 
- Everything else.
Example:
   
   
See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.util.TreeMapceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, isEmpty, toString
- 
Constructor Details- 
OperationMappublic OperationMap()Constructor.
 
- 
- 
Method Details- 
putOverride put to normalize keys to lowercase.
- 
appendFluent-style put method.- Parameters:
- httpMethodName- The HTTP method name.
- operation- The operation.
- Returns:
- This object.
 
 
-