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

java.lang.Object
  extended by jaitools.media.jai.rangelookup.LookupItem<T,U>

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

Used by RangeLookupTable to define a single lookup range and return value.

Since:
1.1
Version:
$Id: LookupItem.java 1490 2011-03-04 06:59:35Z michael.bedward $
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 a copy of this item's range.
 U getValue()
          Gets this item's return 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 lookup range
value - the return value
Throws:
IllegalArgumentException - if either arg is null
Method Detail

getRange

public Range<T> getRange()
Gets a copy of this item's range.

Returns:
the range

getValue

public U getValue()
Gets this item's return value.

Returns:

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-2011. All Rights Reserved.