com.jidesoft.range
Class Category<T>
java.lang.Object
com.jidesoft.range.Category<T>
- All Implemented Interfaces:
- Positionable, Comparable<Positionable>
public class Category<T>
- extends Object
- implements Positionable
This class is really an adapter because it takes any object and allows it to be used as a Category.
- Author:
- Simon White (swhite@catalysoft.com)
Category
public Category(String name,
T value)
Category
public Category(String name,
T value,
CategoryRange<T> range)
Category
public Category(T value)
Category
public Category(T value,
CategoryRange<T> range)
getRange
public CategoryRange<T> getRange()
setRange
public void setRange(CategoryRange<T> range)
position
public double position()
- Description copied from interface:
Positionable
- Map the
Positionable object to a numeric value (a double) so that it can be positioned on an axis.
- Specified by:
position in interface Positionable
- Returns:
- the position of the object
getValue
public T getValue()
getName
public String getName()
compareTo
public int compareTo(Positionable o)
- Specified by:
compareTo in interface Comparable<Positionable>
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 © 2012. All Rights Reserved.