Enum VcsChangeInfo.Type

    • Enum Constant Detail

      • CHANGED

        public static final VcsChangeInfo.Type CHANGED
        File name, properties or content changed
      • DIRECTORY_COPIED

        public static final VcsChangeInfo.Type DIRECTORY_COPIED
        This type should be used when a directory was replaced or added with multiple subdirectories, and when these subdirectories are not reported separately in the change. I.e. this file type indicates that this change may affect multiple subdirectories under the given path.
        Since:
        8.1.x
    • Method Detail

      • values

        public static VcsChangeInfo.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 (VcsChangeInfo.Type c : VcsChangeInfo.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 VcsChangeInfo.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
      • getDescription

        public String getDescription()
        Returns string representation of the change type.
        Returns:
        see above
      • isDirectory

        public boolean isDirectory()
      • isAdded

        public boolean isAdded()
        Returns true if the file type is 'added'.
        Returns:
        true if the file type is 'added'
        Since:
        5.1
      • isRemoved

        public boolean isRemoved()
        Returns true if the file type is 'removed'.
        Returns:
        true if the file type is 'removed'
        Since:
        5.1