Package org.apache.sis.internal.geotiff
Enum Predictor
- All Implemented Interfaces:
Serializable
,Comparable<Predictor>
,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFloating point prediction.Horizontal differencing.No prediction scheme used before coding.Predictor code is not recognized. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predictor
valueOf
(int code) Returns the predictor for the given code.static Predictor
Returns the enum constant of this type with the specified name.static Predictor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No prediction scheme used before coding. -
HORIZONTAL
Horizontal differencing. -
FLOAT
Floating point prediction. -
UNKNOWN
Predictor code is not recognized.
-
-
Constructor Details
-
Predictor
private Predictor()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
valueOf
Returns the predictor for the given code.- Parameters:
code
- value associated to TIFF "predictor" tag.- Returns:
- predictor for the given code.
-