com.ijchart.xychart.constant
Class KeyValueComparatorType

java.lang.Object
  extended by com.ijchart.xychart.constant.KeyValueComparatorType
All Implemented Interfaces:
java.io.Serializable

public final class KeyValueComparatorType
extends java.lang.Object
implements java.io.Serializable

Title: IJChart

Description: a chart library for the Java(tm) platform.

Define the type of sort KeyValuePair object, key or value.

Copyright: Copyright (c) 2013

Company:

Version:
1.0
Author:
zhang feng min,shanghai china. Contract me by email.
See Also:
Serialized Form

Field Summary
static KeyValueComparatorType BY_KEY
           Sort KeyValuePair object by key.
static KeyValueComparatorType BY_VALUE
           Sort KeyValuePair object by value.
 
Method Summary
 boolean equals(java.lang.Object obj)
           Override equals method.
 int hashCode()
           Returns a hash code value for the object.
 java.lang.String toString()
           Override toString method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BY_KEY

public static final KeyValueComparatorType BY_KEY
Sort KeyValuePair object by key.


BY_VALUE

public static final KeyValueComparatorType BY_VALUE
Sort KeyValuePair object by value.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Override equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object
Returns:
boolean

toString

public java.lang.String toString()
Override toString method.

Overrides:
toString in class java.lang.Object
Returns:
String

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.