|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.dataset.data.KeyValuePair
public class KeyValuePair
Title: IJChart
Description: a chart library for the Java(tm) platform.
Class for represent (key,value) pair.The key and value object must implement Cloneable and Serializable interface.Copyright: Copyright (c) 2013
Company:
| Field Summary | |
|---|---|
static KeyValueComparatorType |
DEFAULT_COMPARATOR_TYPE
The default comparator type. |
| Constructor Summary | |
|---|---|
KeyValuePair(java.lang.Object key,
java.lang.Object value)
Construct a instance by (key,value) pair. |
|
KeyValuePair(java.lang.Object key,
java.lang.Object value,
KeyValueComparatorType comparatorType)
Construct a instance by (key,value) pair. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone. |
int |
compareTo(java.lang.Object other)
Compare two objects. |
boolean |
equals(java.lang.Object obj)
Tests this key-value pair for equality with an arbitrary object. |
KeyValueComparatorType |
getComparatorType()
Returns the comparator type. |
java.lang.Object |
getKey()
Get the key object. |
java.lang.Object |
getValue()
Get the value. |
int |
hashCode()
Returns a hash code. |
void |
setComparatorType(KeyValueComparatorType type)
Sets the comparator type. |
void |
setValue(java.lang.Object value)
Sets the value associate with the key. |
java.lang.String |
toString()
Returns a string representing this instance, primarily useful for debugging. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final KeyValueComparatorType DEFAULT_COMPARATOR_TYPE
| Constructor Detail |
|---|
public KeyValuePair(java.lang.Object key,
java.lang.Object value)
key - Object
The key value (null not permitted).value - Object
The value ((null permitted)).
public KeyValuePair(java.lang.Object key,
java.lang.Object value,
KeyValueComparatorType comparatorType)
key - Object
The key value (null not permitted).value - Object
The value ((null permitted)).comparatorType - KeyValueComparatorType
The comparator type.| Method Detail |
|---|
public java.lang.Object getKey()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value - Object
The value associate with the key (null permitted).public KeyValueComparatorType getComparatorType()
public void setComparatorType(KeyValueComparatorType type)
type - KeyValueComparatorType
The comparator type.public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - Object
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj -
the object (null permitted).
public int hashCode()
hashCode in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - Not thrown by this class, but
subclasses (if any) might.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||