Class FeatureSet
Set of features. This is nominally a
Set
due to API pre-existing API contracts. This class needs to be used
very carefully because its hashCode()
and equals(Object)
contracts do not conform to
the specification laid out by Set
and it cannot enumerate its individual component QName
s -- thus
breaking reflexivity requirement of equals(Object)
.
The semantics of contains(Object)
is a bit funky, but reflects the default of supporting all encountered
features without enumerating them. The map supplied to the constructor enumerates all module
namespaces,
expressed as QNameModule
for which we have an explicit enumeration of supported features. All other
module
namespaces are treated as if there was no specification of supported features -- e.g. all features
from those namespaces are deemed to be present in the instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
addAll
(Collection<? extends QName> c) Deprecated.void
clear()
Deprecated.boolean
boolean
int
hashCode()
boolean
isEmpty()
Deprecated.iterator()
Deprecated.boolean
Deprecated.boolean
removeAll
(Collection<?> c) Deprecated.boolean
retainAll
(Collection<?> c) Deprecated.int
size()
Deprecated.Object[]
toArray()
Deprecated.<T> T[]
toArray
(T[] a) Deprecated.toString()
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
containsAll, spliterator
-
Constructor Details
-
FeatureSet
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCollection<QName>
- Specified by:
contains
in interfaceSet<QName>
- Overrides:
contains
in classAbstractCollection<QName>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<QName>
- Specified by:
hashCode
in interfaceSet<QName>
- Overrides:
hashCode
in classAbstractSet<QName>
-
equals
- Specified by:
equals
in interfaceCollection<QName>
- Specified by:
equals
in interfaceSet<QName>
- Overrides:
equals
in classAbstractSet<QName>
-
toString
- Overrides:
toString
in classAbstractCollection<QName>
-
iterator
Deprecated. -
isEmpty
Deprecated.- Specified by:
isEmpty
in interfaceCollection<QName>
- Specified by:
isEmpty
in interfaceSet<QName>
- Overrides:
isEmpty
in classAbstractCollection<QName>
-
size
Deprecated.- Specified by:
size
in interfaceCollection<QName>
- Specified by:
size
in interfaceSet<QName>
- Specified by:
size
in classAbstractCollection<QName>
-
toArray
Deprecated.- Specified by:
toArray
in interfaceCollection<QName>
- Specified by:
toArray
in interfaceSet<QName>
- Overrides:
toArray
in classAbstractCollection<QName>
-
toArray
Deprecated.- Specified by:
toArray
in interfaceCollection<QName>
- Specified by:
toArray
in interfaceSet<QName>
- Overrides:
toArray
in classAbstractCollection<QName>
-
add
Deprecated.- Specified by:
add
in interfaceCollection<QName>
- Specified by:
add
in interfaceSet<QName>
- Overrides:
add
in classAbstractCollection<QName>
-
remove
Deprecated.- Specified by:
remove
in interfaceCollection<QName>
- Specified by:
remove
in interfaceSet<QName>
- Overrides:
remove
in classAbstractCollection<QName>
-
addAll
Deprecated.- Specified by:
addAll
in interfaceCollection<QName>
- Specified by:
addAll
in interfaceSet<QName>
- Overrides:
addAll
in classAbstractCollection<QName>
-
retainAll
Deprecated.- Specified by:
retainAll
in interfaceCollection<QName>
- Specified by:
retainAll
in interfaceSet<QName>
- Overrides:
retainAll
in classAbstractCollection<QName>
-
removeAll
Deprecated.- Specified by:
removeAll
in interfaceCollection<QName>
- Specified by:
removeAll
in interfaceSet<QName>
- Overrides:
removeAll
in classAbstractSet<QName>
-
clear
Deprecated.- Specified by:
clear
in interfaceCollection<QName>
- Specified by:
clear
in interfaceSet<QName>
- Overrides:
clear
in classAbstractCollection<QName>
-