org.jaitools.media.jai.rangelookup
Class LookupItem<T extends Number & Comparable<? super T>,U extends Number & Comparable<? super U>>

java.lang.Object
  extended by org.jaitools.media.jai.rangelookup.LookupItem<T,U>
Type Parameters:
T - type of the source range
U - type of the destination value

public class LookupItem<T extends Number & Comparable<? super T>,U extends Number & Comparable<? super U>>
extends Object

Used by RangeLookupTable to associate a source value lookup range with a destination value.

Since:
1.1
Author:
Michael Bedward, Simone Giannecchini, GeoSolutions

Constructor Summary
LookupItem(Range<T> range, U value)
          Creates a new instance.
 
Method Summary
 boolean equals(Object obj)
           
 Range<T> getRange()
          Gets the source value lookup range.
 U getValue()
          Gets the destination value.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LookupItem

public LookupItem(Range<T> range,
                  U value)
Creates a new instance.

Parameters:
range - the source value lookup range
value - the destination value associated with this range
Throws:
IllegalArgumentException - if either arg is null
Method Detail

getRange

public Range<T> getRange()
Gets the source value lookup range.

Returns:
the range

getValue

public U getValue()
Gets the destination value.

Returns:
the value

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013. All Rights Reserved.