RankingPositionpublic class SimpleRankingPosition
extends java.lang.Object
| Constructor | Description |
|---|---|
SimpleRankingPosition(int[] objectsNumbers) |
Constructor for
SimpleRankingPosition class. |
| Modifier and Type | Method | Description |
|---|---|---|
int[] |
getObjectsNumbers() |
Gets list with numbers of objects sharing this ranking's position.
Because of efficiency, reference to the object stored in this class is returned. |
public SimpleRankingPosition(int[] objectsNumbers)
SimpleRankingPosition class.
Given list of objects' numbers is cloned before storing in this class.objectsNumbers - list with numbers of objects sharing this ranking's positionjava.lang.NullPointerException - when array with numbers of objects is nullInvalidValueException - when array with numbers of objects is empty
or when some number of object is smaller than zeropublic int[] getObjectsNumbers()