Class JmDNSImpl.ServiceTypeEntry
- Enclosing class:
JmDNSImpl
public static class JmDNSImpl.ServiceTypeEntry
extends AbstractMap<String,String>
implements Cloneable
This is used to store type entries. The type is stored as a call variable and the map support the subtypes.
The key is the lowercase version as the value is the case preserved version.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the specified element to this set if it is not already present.clone()booleanReturnstrueif this set contains the specified element.entrySet()getType()The type associated with this entry.iterator()Returns an iterator over the elements in this set.toString()Methods inherited from class AbstractMap
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
_entrySet
-
_type
-
-
Constructor Details
-
ServiceTypeEntry
-
-
Method Details
-
getType
-
entrySet
-
contains
Returnstrueif this set contains the specified element. More formally, returnstrueif and only if this set contains an elementesuch that(o==null ? e==null : o.equals(e)).- Parameters:
subtype- element whose presence in this set is to be tested- Returns:
trueif this set contains the specified element
-
add
Adds the specified element to this set if it is not already present. More formally, adds the specified elementeto this set if this set contains no elemente2such that(e==null ? e2==null : e.equals(e2)). If this set already contains the element, the call leaves the set unchanged and returnsfalse.- Parameters:
subtype- element to be added to this set- Returns:
trueif this set did not already contain the specified element
-
iterator
-
clone
- Overrides:
clonein classAbstractMap<String,String>
-
toString
- Overrides:
toStringin classAbstractMap<String,String>
-