/* * Created on 09/06/2003 */ package heap; /** * @author unknown */ public class IntegerElement implements HeapElement { int value = 0; Object index; public IntegerElement(int value) { this.value = value; } public int getKey() { return value; } public void setKey(int key) { value = key; } public Object getIndex() { return index; } public void setIndex(Object index) { this.index = index; } public String toString() { return Integer.toString(value); } }