Class JmDNSImpl.ServiceTypeEntry.SubTypeEntry

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map.Entry<java.lang.String,​java.lang.String>
    Enclosing class:
    JmDNSImpl.ServiceTypeEntry

    private static class JmDNSImpl.ServiceTypeEntry.SubTypeEntry
    extends java.lang.Object
    implements java.util.Map.Entry<java.lang.String,​java.lang.String>, java.io.Serializable, java.lang.Cloneable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String _key  
      private java.lang.String _value  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      SubTypeEntry​(java.lang.String subtype)  
    • Field Detail

      • _key

        private final java.lang.String _key
      • _value

        private final java.lang.String _value
    • Constructor Detail

      • SubTypeEntry

        public SubTypeEntry​(java.lang.String subtype)
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<java.lang.String,​java.lang.String>
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<java.lang.String,​java.lang.String>
      • setValue

        public java.lang.String setValue​(java.lang.String value)
        Replaces the value corresponding to this entry with the specified value (optional operation). This implementation simply throws UnsupportedOperationException, as this class implements an immutable map entry.
        Specified by:
        setValue in interface java.util.Map.Entry<java.lang.String,​java.lang.String>
        Parameters:
        value - new value to be stored in this entry
        Returns:
        (Does not return)
        Throws:
        java.lang.UnsupportedOperationException - always
      • equals

        public boolean equals​(java.lang.Object entry)
        Specified by:
        equals in interface java.util.Map.Entry<java.lang.String,​java.lang.String>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<java.lang.String,​java.lang.String>
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object