|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.vars.EventVariableValueBuffer.Count
static final class EventVariableValueBuffer.Count
Private class to contain an int count value. Contains the count of a paritcular value.
Is mutable to avoid unnecessary object churn in the heap.
When created has a count of 1.
Not thread-safe (access should be protected by other means).
Made available to EventVariableValue to help in canonicalising state.
| Field Summary | |
|---|---|
(package private) int |
count
Count value; should be strictly positive. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
(package private) java.lang.Object |
value
Value (should be immutable); non-null. |
| Constructor Summary | |
|---|---|
EventVariableValueBuffer.Count(java.lang.Object o)
Construct an instance with the given (non-null) event value. |
|
| Method Summary | |
|---|---|
int |
compareTo(EventVariableValueBuffer.Count c)
Provide total ordering with largest count (lowest rank) first. |
protected java.lang.Object |
readResolve()
Deserialise: validate and then intern() value to economise on memory. |
void |
validateObject()
Check that the object state is consistent and legal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final java.lang.Object value
int count
private static final long serialVersionUID
| Constructor Detail |
|---|
EventVariableValueBuffer.Count(java.lang.Object o)
| Method Detail |
|---|
public int compareTo(EventVariableValueBuffer.Count c)
compareTo in interface java.lang.Comparable<EventVariableValueBuffer.Count>
public void validateObject()
throws java.io.InvalidObjectException
validateObject in interface java.io.ObjectInputValidationjava.io.InvalidObjectException
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||