Package org.anchoranalysis.core.index
Class Indexable
Object
Indexable
- All Implemented Interfaces:
Comparable<AssociatedIndex>
,AssociatedIndex
- Direct Known Subclasses:
IndexableMarksWithEnergy
public abstract class Indexable
extends Object
implements AssociatedIndex, Comparable<AssociatedIndex>
Holds a single-index which is hashable and comparable.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Indexable
public Indexable(int index)
-
-
Method Details
-
getIndex
public int getIndex()Description copied from interface:AssociatedIndex
The associated index.- Specified by:
getIndex
in interfaceAssociatedIndex
- Returns:
- the index.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<AssociatedIndex>
-
equals
-
canEqual
-
hashCode
public int hashCode()
-