Class Paths


  • public final class Paths
    extends Object
    Class that represents the Paths type in API descriptor.
    • Method Detail

      • getPaths

        protected Map<String,​VersionedPath> getPaths()
        Gets a Map of path-names to Paths. This method is currently only used for JSON serialization.
        Returns:
        Map of path-names to Paths.
      • get

        public VersionedPath get​(String name)
        Gets the Path for a given Path-name.
        Parameters:
        name - Path name
        Returns:
        Path or null if does-not-exist.
      • getNames

        public Set<String> getNames()
        Returns all Path names.
        Returns:
        All Path names.
      • paths

        public static Paths.Builder paths()
        Create a new Builder for Paths.
        Returns:
        Builder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object