public class IdSpecification extends ObjectSpecification
Modifier and Type | Field and Description |
---|---|
private long |
_id |
private static Map<Long,Long> |
_idCache
Dieser Cache ist static und wird für alle Verbindungen benutzt, kann also höchstwahrscheinlich viel Unsinn enthalten.
|
private ManagerInterface |
_manager |
Constructor and Description |
---|
IdSpecification(long id,
ManagerInterface manager)
Erstellt eine IdSpecification
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
SystemObject |
getObject(DataModel dataModel) |
int |
hashCode() |
boolean |
matches(SystemObject object) |
private boolean |
matchesProperties(ExchangeProperties props) |
String |
toString() |
create
private final long _id
private static final Map<Long,Long> _idCache
private ManagerInterface _manager
public IdSpecification(long id, ManagerInterface manager)
id
- Idmanager
- public SystemObject getObject(DataModel dataModel)
getObject
in class ObjectSpecification
private boolean matchesProperties(ExchangeProperties props)
public boolean matches(SystemObject object)
matches
in class ObjectSpecification
public boolean equals(Object o)
equals
in class ObjectSpecification
public int hashCode()
hashCode
in class ObjectSpecification
public String toString()
toString
in class ObjectSpecification