data
Class IndexedItem
java.lang.Object
data.IndexedItem
- All Implemented Interfaces:
- java.lang.Comparable<IndexedItem>
public class IndexedItem
- extends java.lang.Object
- implements java.lang.Comparable<IndexedItem>
Basic class to work with array keys (indexes). It allows the comparison
between them.
- Version:
- 1.0
- Author:
- Oscar Flores
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
public int index
- Index (key) id
value
public float value
- Float value
secondValue
public float secondValue
- Additional Float value
IndexedItem
public IndexedItem(int id,
float value)
- Parameters:
id
- value
-
IndexedItem
public IndexedItem(int id,
float value,
float secondValue)
- Parameters:
id
- value
- secondValue
-
compareTo
public int compareTo(IndexedItem o)
- Specified by:
compareTo
in interface java.lang.Comparable<IndexedItem>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object