Class OperationMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<String,Operation>
org.apache.juneau.dto.swagger.OperationMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Operation>, NavigableMap<String,Operation>, SortedMap<String,Operation>

public class OperationMap extends TreeMap<String,Operation>
Map meant for method-name/operation mappings.

Forces entries to be sorted in the following order:

  • GET
  • PUT
  • POST
  • DELETE
  • OPTIONS
  • HEAD
  • PATCH
  • Everything else.
See Also:
  • Constructor Details

  • Method Details

    • append

      public OperationMap append(String httpMethodName, Operation operation)
      Fluent-style put method.
      Parameters:
      httpMethodName - The HTTP method name.
      operation - The operation.
      Returns:
      This object.