Enum VcsChangeInfo.Type

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns string representation of the change type.
      boolean isAdded()
      Returns true if the file type is 'added'.
      boolean isDirectory()  
      boolean isRemoved()
      Returns true if the file type is 'removed'.
      static VcsChangeInfo.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static VcsChangeInfo.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(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
      • getDescription

        public java.lang.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