Package org.geotools.coverage.grid
Class LookupTableFactory
- Object
-
- LookupTableFactory
-
public final class LookupTableFactory extends Object
A factory forLookupTableJAI
objects built from an array ofMathTransform1D
. This factory is used internally byGridCoverageViews#create
.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LookupTableJAI
create(int sourceType, int targetType, MathTransform1D[] transforms)
Gets a lookup factoryboolean
equals(Object other)
Compares the specified object with this key for equality.int
hashCode()
Returns a hash code value for this key.
-
-
-
Method Detail
-
create
public static LookupTableJAI create(int sourceType, int targetType, MathTransform1D[] transforms) throws TransformException
Gets a lookup factory- Parameters:
sourceType
- The source data type. Should be one ofDataBuffer
constants.targetType
- The target data type. Should be one ofDataBuffer
constants.transforms
- The math transforms to apply.- Returns:
- The lookup table, or
null
if this method can't build a lookup table for the supplied parameters. - Throws:
TransformException
- if a transformation failed.
-
hashCode
public int hashCode()
Returns a hash code value for this key. This is for internal use byLookupTableFactory
and is public only as an implementation side effect.
-
-