Enum DiffInfo.TYPE

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DiffInfo.TYPE>
    Enclosing class:
    DiffInfo

    public static enum DiffInfo.TYPE
    extends java.lang.Enum<DiffInfo.TYPE>
    The general information about the diff
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADDED
      this resource is new and not contained in the old version
      MOVED
      this resource is in both versions but at different locations
      REMOVED
      this resource has been removed and is only in the old version
      SAME
      resource is in both versions at the same location
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static DiffInfo.TYPE valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DiffInfo.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

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

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • ADDED

        public static final DiffInfo.TYPE ADDED
        this resource is new and not contained in the old version
      • REMOVED

        public static final DiffInfo.TYPE REMOVED
        this resource has been removed and is only in the old version
      • MOVED

        public static final DiffInfo.TYPE MOVED
        this resource is in both versions but at different locations
      • SAME

        public static final DiffInfo.TYPE SAME
        resource is in both versions at the same location
    • Method Detail

      • values

        public static DiffInfo.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 (DiffInfo.TYPE c : DiffInfo.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 DiffInfo.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