Package pal.misc

Class IdGroup.Utils

  • Enclosing interface:
    IdGroup

    public static final class IdGroup.Utils
    extends java.lang.Object
    • Constructor Detail

      • Utils

        public 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