javax.jmdns.impl
public static class JmDNSImpl.ServiceTypeEntry extends java.util.AbstractMap<java.lang.String,java.lang.String> implements java.lang.Cloneable
The key is the lowercase version as the value is the case preserved version.
Constructor and Description |
---|
JmDNSImpl.ServiceTypeEntry(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String subtype)
Adds the specified element to this set if it is not already present.
|
JmDNSImpl.ServiceTypeEntry |
clone() |
boolean |
contains(java.lang.String subtype)
Returns
true if this set contains the specified element. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entrySet() |
java.lang.String |
getType()
The type associated with this entry.
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the elements in this set.
|
java.lang.String |
toString() |
public JmDNSImpl.ServiceTypeEntry(java.lang.String type)
public java.lang.String getType()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.String>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.String>
entrySet
in class java.util.AbstractMap<java.lang.String,java.lang.String>
public boolean contains(java.lang.String subtype)
true
if this set contains the specified element. More formally, returns true
if and only if this set contains an element e
such that
(o==null ? e==null : o.equals(e))
.subtype
- element whose presence in this set is to be testedtrue
if this set contains the specified elementpublic boolean add(java.lang.String subtype)
e
to this set if this set contains no element e2
such that
(e==null ? e2==null : e.equals(e2))
. If this set already contains the element, the call leaves the set unchanged and returns false
.subtype
- element to be added to this settrue
if this set did not already contain the specified elementpublic java.util.Iterator<java.lang.String> iterator()
public JmDNSImpl.ServiceTypeEntry clone()
clone
in class java.util.AbstractMap<java.lang.String,java.lang.String>
public java.lang.String toString()
toString
in class java.util.AbstractMap<java.lang.String,java.lang.String>