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