Class Services


  • public final class Services
    extends Object
    Class that represents API descriptor's Service Resource definitions.
    • Method Detail

      • getServices

        protected Map<String,​Resource> getServices()
        Gets a Map of service-names to Resources. This method is currently only used for JSON serialization.
        Returns:
        Map of service-names to Resources.
      • get

        public Resource get​(String name)
        Gets the Resource for a given service-name.
        Parameters:
        name - Service name
        Returns:
        Schema or null if does-not-exist.
      • services

        public static Services.Builder services()
        Create a new Builder for Services.
        Returns:
        Builder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object