Enum Constants.IntegrityType

    • Field Detail

      • val

        private int val
        The magic value.
    • Constructor Detail

      • IntegrityType

        private IntegrityType​(int val)
        Build an integrity type with the given value.
        Parameters:
        val - The value.
    • Method Detail

      • values

        public static Constants.IntegrityType[] 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 (Constants.IntegrityType c : Constants.IntegrityType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Constants.IntegrityType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • safe

        public boolean safe()
        Is this integrity safe (i.e. non-failed).
        Returns:
        True if the integrity is safe.
      • fix

        public Constants.IntegrityType fix()
        Get the fixed version of this integrity. If the integrity is broken, nothing can happen.
        Returns:
        The fixed IntegrityType.