Class MonitoredResourceDescriptor.LabelDescriptor

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    MonitoredResourceDescriptor

    public static class MonitoredResourceDescriptor.LabelDescriptor
    extends Object
    implements Serializable
    This class describes a label for a monitored resource. Label descriptors contain the key for the label, the type of data that the label can hold and an optional description.
    See Also:
    Serialized Form
    • Method Detail

      • getKey

        public String getKey()
        Returns the key associated to this label.
      • getDescription

        public String getDescription()
        Returns the optional human-readable description for this label. If not set, this method returns null.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object