private static final class ConfigAreaFile.SortObjectPid extends Object implements Comparable<ConfigAreaFile.SortObjectPid>
Modifier and Type | Field and Description |
---|---|
private List<Long> |
_filePositions
relative Dateipositionen der Objekte, deren Pid auf _pidHashCode abgebildet werden konnten
|
private int |
_pidHashCode
HashCode, der die Pid abbildet
|
Constructor and Description |
---|
ConfigAreaFile.SortObjectPid(int pidHashCode) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConfigAreaFile.SortObjectPid o) |
List<Long> |
getFilePositions() |
int |
getPidHashCode() |
void |
putFilePosition(long newFilePosition)
Speichert zu einer Pid die Dateipostion des Objekts.
|
private final List<Long> _filePositions
private final int _pidHashCode
public ConfigAreaFile.SortObjectPid(int pidHashCode)
pidHashCode
- HashCode einer Pid, dieser Wert wird bei einer Sortierung als Kriterium gewähltpublic void putFilePosition(long newFilePosition)
newFilePosition
- aktuelle Position in der Datei, an der das Objekt gespeichert istpublic int getPidHashCode()
public int compareTo(ConfigAreaFile.SortObjectPid o)
compareTo
in interface Comparable<ConfigAreaFile.SortObjectPid>