Interface Paths

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Detail

      • addPathItem

        Paths addPathItem​(java.lang.String name,
                          PathItem item)
        Adds the given path item to this Paths and return this instance of Paths
        Parameters:
        name - a path name in the format valid for a Paths object. The field name MUST begin with a slash.
        item - the path item added to the list of paths. null values will be rejected (implementation will throw an exception) or ignored.
        Returns:
        the current Paths instance
      • removePathItem

        void removePathItem​(java.lang.String name)
        Removes the given path item to this Paths.
        Parameters:
        name - a path name that will be removed.
      • getPathItems

        java.util.Map<java.lang.String,​PathItem> getPathItems()
        Returns a copy map (potentially immutable) of the path items.
        Returns:
        all items
      • setPathItems

        void setPathItems​(java.util.Map<java.lang.String,​PathItem> items)
        Set the path items map to this Paths
        Parameters:
        items - a map containing the list of paths. Keys MUST begin with a slash.
      • hasPathItem

        default boolean hasPathItem​(java.lang.String name)
        Check whether a path item is present in the map. This is a convenience method for getPathItems().containsKey(name)
        Parameters:
        name - a path name in the format valid for a Paths object.
        Returns:
        a boolean to indicate if the path item is present or not.
      • getPathItem

        default PathItem getPathItem​(java.lang.String name)
        Returns a path item for a given name. This is a convenience method for getPathItems().get(name)
        Parameters:
        name - a path name in the format valid for a Paths object.
        Returns:
        the corresponding path item or null.
      • get

        @Deprecated
        PathItem get​(java.lang.Object key)
        Deprecated.
        since 1.1
        In the next version, Paths will no longer extends Map, this method will no longer be present. Use getPathItem(String) instead.
        Specified by:
        get in interface java.util.Map<java.lang.String,​PathItem>
      • containsKey

        @Deprecated
        boolean containsKey​(java.lang.Object key)
        Deprecated.
        since 1.1
        In the next version, Paths will no longer extends Map, this method will no longer be present. Use hasPathItem(String) instead.
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​PathItem>
      • put

        @Deprecated
        PathItem put​(java.lang.String key,
                     PathItem value)
        Deprecated.
        since 1.1
        In the next version, Paths will no longer extends Map, this method will no longer be present. Use addPathItem(String, PathItem) instead.
        Specified by:
        put in interface java.util.Map<java.lang.String,​PathItem>
      • putAll

        @Deprecated
        void putAll​(java.util.Map<? extends java.lang.String,​? extends PathItem> m)
        Deprecated.
        since 1.1
        In the next version, Paths will no longer extends Map, this method will no longer be present. Use setPathItems(Map) instead.
        Specified by:
        putAll in interface java.util.Map<java.lang.String,​PathItem>
      • remove

        @Deprecated
        PathItem remove​(java.lang.Object key)
        Deprecated.
        since 1.1
        In the next version, Paths will no longer extends Map, this method will no longer be present. Use removePathItem(String) instead.
        Specified by:
        remove in interface java.util.Map<java.lang.String,​PathItem>