Enum Predictor

java.lang.Object
java.lang.Enum<Predictor>
org.apache.sis.internal.geotiff.Predictor
All Implemented Interfaces:
Serializable, Comparable<Predictor>, java.lang.constant.Constable

public enum Predictor extends Enum<Predictor>
Possible values for Tags.Predictor. A predictor is a mathematical operator that is applied to the image data before an encoding scheme is applied.
Since:
1.1
Version:
1.1
  • Enum Constant Details

    • NONE

      public static final Predictor NONE
      No prediction scheme used before coding.
    • HORIZONTAL

      public static final Predictor HORIZONTAL
      Horizontal differencing.
    • FLOAT

      public static final Predictor FLOAT
      Floating point prediction.
    • UNKNOWN

      public static final Predictor UNKNOWN
      Predictor code is not recognized.
  • Constructor Details

    • Predictor

      private Predictor()
  • Method Details

    • values

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

      public static Predictor 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
    • valueOf

      public static Predictor valueOf(int code)
      Returns the predictor for the given code.
      Parameters:
      code - value associated to TIFF "predictor" tag.
      Returns:
      predictor for the given code.