Package pal.misc

Class IdGroup.Utils

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

public static final class IdGroup.Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • 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, String s)
      A convenience implementation of whichIdNumber that can be used by IdGroup implementations
      Returns:
      -1 if s not in group