Package net.sf.saxon.om
Class EnumSetTool
- java.lang.Object
-
- net.sf.saxon.om.EnumSetTool
-
public class EnumSetTool extends java.lang.Object
A couple of utility methods for handling EnumSet objects.
-
-
Constructor Summary
Constructors Constructor Description EnumSetTool()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <P extends java.lang.Enum<P>>
java.util.EnumSet<P>intersect(java.util.EnumSet<P> a, java.util.EnumSet<P> b)
Return a new EnumSet as the intersection of two supplied EnumSets.static <P extends java.lang.Enum<P>>
java.util.EnumSet<P>union(java.util.EnumSet<P> a, java.util.EnumSet<P> b)
Return a new EnumSet as the union of two supplied EnumSets.
-
-
-
Method Detail
-
intersect
public static <P extends java.lang.Enum<P>> java.util.EnumSet<P> intersect(java.util.EnumSet<P> a, java.util.EnumSet<P> b)
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
public static <P extends java.lang.Enum<P>> java.util.EnumSet<P> union(java.util.EnumSet<P> a, java.util.EnumSet<P> b)
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
-
-