Enum InlineDiffChunk.Type

    • Enum Constant Detail

      • ADDED

        public static final InlineDiffChunk.Type ADDED
        A chunk that has been added. All the elements that form this chunk have been added.
      • DELETED

        public static final InlineDiffChunk.Type DELETED
        A chunk that has been removed. All the elements that form this chunk have been added.
      • UNMODIFIED

        public static final InlineDiffChunk.Type UNMODIFIED
        A chunk that stays unmodified. The elements of this chunk are neither added nor removed. They indicate the context where a change has been made.
    • Method Detail

      • values

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

        public static InlineDiffChunk.Type 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