pal.misc
Class IdGroup.Utils

java.lang.Object
  extended by pal.misc.IdGroup.Utils
Enclosing interface:
IdGroup

public static final class IdGroup.Utils
extends java.lang.Object


Constructor Summary
IdGroup.Utils()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGroup.Utils

public IdGroup.Utils()
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