static class EventList.LookupResourceKey
extends java.lang.Object
EventList.lookup(long, boolean, TriggerMatch)
.Modifier and Type | Field and Description |
---|---|
private int |
hash
The cached hash value.
|
private long |
resourceId
The resource ID.
|
private boolean |
trigExit
true if the search is for a trigger or false if the search is for an exit
condition. |
Constructor and Description |
---|
LookupResourceKey(long resourceId,
boolean trigExit)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this instance is the same as the other.
|
private int |
hash()
Precalculate the key's hash.
|
int |
hashCode()
The key's hash code.
|
private final long resourceId
private final boolean trigExit
true
if the search is for a trigger or false
if the search is for an exit
condition.private final int hash
public LookupResourceKey(long resourceId, boolean trigExit)
resourceId
- The resource ID.trigExit
- true
if the search is for a trigger or false
if the search is
for an exit condition.public int hashCode()
hashCode
in class java.lang.Object
hash
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other instance.true
if the instances have the same state.private int hash()