Enum ComparePairType

    • Method Detail

      • values

        public static ComparePairType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ComparePairType c : ComparePairType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ComparePairType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDisplayName

        public String getDisplayName()
        replies the display name
        Returns:
        the display name
      • isParticipatingIn

        public boolean isParticipatingIn​(ListRole role)
        replies true, if role is participating in this comparison pair
        Parameters:
        role - the list role
        Returns:
        true, if role is participating in this comparison pair; false, otherwise
      • getOppositeRole

        public ListRole getOppositeRole​(ListRole role)
        replies the opposite role of role participating in this comparison pair
        Parameters:
        role - one of the two roles in this pair
        Returns:
        the opposite role
        Throws:
        IllegalStateException - if role is not participating in this pair