Package net.sf.saxon.om
Class EnumSetTool
java.lang.Object
net.sf.saxon.om.EnumSetTool
A couple of utility methods for handling EnumSet objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn a new EnumSet as the difference of two supplied EnumSets.Return a new EnumSet as the intersection of two supplied EnumSets.Return a new EnumSet as the union of two supplied EnumSets.
-
Constructor Details
-
EnumSetTool
public EnumSetTool()
-
-
Method Details
-
intersect
Return a new EnumSet as the intersection of two supplied EnumSets. Neither is modified.- Type Parameters:
P
- the Enum class common to both arguments- Parameters:
a
- the first EnumSetb
- the second EnumSet- Returns:
- the combined EnumSet
-
union
Return a new EnumSet as the union of two supplied EnumSets. Neither is modified- Type Parameters:
P
- the Enum class common to both arguments- Parameters:
a
- the first EnumSetb
- the second EnumSet- Returns:
- the combined EnumSet
-
except
Return a new EnumSet as the difference of two supplied EnumSets. Neither is modified- Type Parameters:
P
- the Enum class containing properties in (a) except those in (b)- Parameters:
a
- the first EnumSetb
- the second EnumSet- Returns:
- the combined EnumSet
-