Enum Class FileTypeDiffability

java.lang.Object
java.lang.Enum<FileTypeDiffability>
com.kazurayam.materialstore.core.FileTypeDiffability
All Implemented Interfaces:
Serializable, Comparable<FileTypeDiffability>, Constable

public enum FileTypeDiffability extends Enum<FileTypeDiffability>
Diff-ability

MimeType "text/html" is a simple text, so it is diffable by TextDifferToHTML MimeType "image/png" is an image, so it is diffable by ImageDifferToPNG MimeType "font/woff2" is an unknown, so it is unable to create a diff info.

  • Enum Constant Details

  • Method Details

    • values

      public static FileTypeDiffability[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FileTypeDiffability valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isDiffable

      public Boolean isDiffable()