Package org.revapi

Enum DifferenceSeverity

    • Enum Constant Detail


        public static final DifferenceSeverity EQUIVALENT
        The difference doesn't produce any visible change from the user's perspective.

        public static final DifferenceSeverity NON_BREAKING
        The difference doesn't cause any breakage in given compatibility type

        public static final DifferenceSeverity POTENTIALLY_BREAKING
        Under certain circumstances the difference is breaking the compatibility of given type.
      • BREAKING

        public static final DifferenceSeverity BREAKING
        The difference definitely breaks the compatibility of given type.
    • Method Detail

      • values

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

        public static DifferenceSeverity 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromCamelCase

        public static DifferenceSeverity fromCamelCase​(String camelCaseValue)
        Returns the difference severity represented by the provided string in camel case. I.e. "nonBreaking" parses to NON_BREAKING, etc.
        camelCaseValue - the value in camel case
        the corresponding difference severity instance