Interface CAFileType

All Superinterfaces:
Comparable<CAFileType>
All Known Implementing Classes:
CAFileType.CAFileWithData, CAFileType.CAFileWithoutData

public sealed interface CAFileType extends Comparable<CAFileType> permits CAFileType.CAFileWithoutData, CAFileType.CAFileWithData
The type of files.
  • Method Details

    • id

      CAFileID id()
      Returns:
      The ID
    • description

      String description()
      Returns:
      The description
    • mediaType

      String mediaType()
      Returns:
      The media type
    • size

      long size()
      Returns:
      The size in bytes
    • hashAlgorithm

      String hashAlgorithm()
      Returns:
      The hash algorithm
    • hashValue

      String hashValue()
      Returns:
      The hash value
    • dataOptional

      Optional<CAByteArray> dataOptional()
      Returns:
      The data, if any
    • withoutData

      Returns:
      The file without data
    • compareTo

      default int compareTo(CAFileType other)
      Specified by:
      compareTo in interface Comparable<CAFileType>