public static class JmDNSImpl.ServiceTypeEntry extends AbstractMap<String,String> implements Cloneable
The key is the lowercase version as the value is the case preserved version.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ServiceTypeEntry(String type) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String subtype)
Adds the specified element to this set if it is not already present.
|
JmDNSImpl.ServiceTypeEntry |
clone() |
boolean |
contains(String subtype)
Returns
true if this set contains the specified element. |
Set<Map.Entry<String,String>> |
entrySet() |
String |
getType()
The type associated with this entry.
|
Iterator<String> |
iterator()
Returns an iterator over the elements in this set.
|
String |
toString() |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public ServiceTypeEntry(String type)
public String getType()
public boolean contains(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(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 Iterator<String> iterator()
public JmDNSImpl.ServiceTypeEntry clone()
clone
in class AbstractMap<String,String>
public String toString()
toString
in class AbstractMap<String,String>
Copyright © 2002–2014 JmDNS. All rights reserved.