Package pal.misc
Class IdGroup.Utils
- java.lang.Object
-
- pal.misc.IdGroup.Utils
-
- Enclosing interface:
- IdGroup
public static final class IdGroup.Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isContainedWithin(IdGroup sub, IdGroup full)
static boolean
isEqualIgnoringOrder(IdGroup id1, IdGroup id2)
static int
whichIdNumber(IdGroup group, java.lang.String s)
A convenience implementation of whichIdNumber that can be used by IdGroup implementations
-
-
-
Method Detail
-
isContainedWithin
public static final boolean isContainedWithin(IdGroup sub, IdGroup full)
- Returns:
- true if sub IdGroup completely contained within full, false otherwise
-
isEqualIgnoringOrder
public static final boolean isEqualIgnoringOrder(IdGroup id1, IdGroup id2)
- Returns:
- true if id1 and id2 share exactly the same identifiers (.equals() based, not reference base). The order is not important.
-
whichIdNumber
public static final int whichIdNumber(IdGroup group, java.lang.String s)
A convenience implementation of whichIdNumber that can be used by IdGroup implementations- Returns:
- -1 if s not in group
-
-