Class LookupTableFactory


  • public final class LookupTableFactory
    extends Object
    A factory for LookupTableJAI objects built from an array of MathTransform1D. This factory is used internally by GridCoverageViews#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 factory
      boolean equals​(Object other)
      Compares the specified object with this key for equality.
      int hashCode()
      Returns a hash code value for this key.
      • Methods inherited from class Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • 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 of DataBuffer constants.
        targetType - The target data type. Should be one of DataBuffer 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 by LookupTableFactory and is public only as an implementation side effect.
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object other)
        Compares the specified object with this key for equality. This is for internal use by LookupTableFactory and is public only as an implementation side effect.
        Overrides:
        equals in class Object