private static final class ConfigAreaFile.SortObject extends java.lang.Object implements java.lang.Comparable<ConfigAreaFile.SortObject>
Diese Klasse wird mehrfach mit unterschiedlichen Aufgaben benutzt. Es wird aber immer in einem Array benutzt um eine Sortierung des Array nach dem Value des Objekts zu erzeugen. Der Value kann dabei ein Zeitstempel oder eine Id sein.
Diese Klasse speichert den Zeitstempel, wann ein dynamisches Objekt ungültig geworden ist und die Position an dem das Objekt in der Datei gespeichert wurde.
Diese Klasse speichert die Id und die Dateiposition von beliebigen Objekten.
Modifier and Type | Field and Description |
---|---|
private long |
_filePosition |
private long |
_value |
Constructor and Description |
---|
SortObject(long filePosition,
long value) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConfigAreaFile.SortObject sortObject) |
boolean |
equals(java.lang.Object o) |
long |
getFilePosition() |
long |
getValue() |
int |
hashCode() |
public SortObject(long filePosition, long value)
filePosition
- Dateiposition (relativ)value
- Wert, nach dem auch sortiert wird (Id, Zeitstempel, usw)public long getFilePosition()
public long getValue()
public int compareTo(ConfigAreaFile.SortObject sortObject)
compareTo
in interface java.lang.Comparable<ConfigAreaFile.SortObject>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object