public class SimpleElement extends Object implements IndexSortable, Comparable
This is a light data structor for data element that can be used for simple pair
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
SimpleElement(String key,
int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
int |
getIndex() |
String |
getKey() |
void |
setIndex(int index) |
void |
setKey(String key) |
public SimpleElement(String key, int index)
public String getKey()
public void setKey(String key)
public int getIndex()
getIndex in interface IndexSortablepublic void setIndex(int index)
setIndex in interface IndexSortablepublic int compareTo(Object obj)
compareTo in interface ComparableCopyright © 2018 JULIE Lab, Germany. All rights reserved.