public class SimplePair extends Object implements IndexSortable, Comparable
This is a light data structure for pair data
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
SimplePair(int index,
int firstElement,
int secondElement) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
int |
getFirstElement() |
static int |
getHashCapacity() |
int |
getIndex() |
int |
getSecondElement() |
int |
hashCode() |
static void |
setHashCapacity(int capacity) |
void |
setIndex(int index) |
public int getIndex()
getIndex in interface IndexSortablepublic void setIndex(int index)
setIndex in interface IndexSortablepublic int getFirstElement()
public int getSecondElement()
public int compareTo(Object obj)
compareTo in interface Comparablepublic static void setHashCapacity(int capacity)
public static int getHashCapacity()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.