org.hd.d.pg2k.svrCore.vars
Class EventVariableValue.ValueInfo

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.vars.EventVariableValue.ValueInfo
All Implemented Interfaces:
java.io.ObjectInputValidation, java.io.Serializable
Enclosing class:
EventVariableValue

public static final class EventVariableValue.ValueInfo
extends java.lang.Object
implements java.io.Serializable, java.io.ObjectInputValidation

Immutable info collected about one particular value of an event.

See Also:
Serialized Form

Field Summary
 int count
          Count is count of this value; strictly positive.
 int rank
          Rank: 0 means top, ie highest count; non-negative.
private static long serialVersionUID
          Unique Serialisation class ID generated by http://random.hd.org/.
 
Constructor Summary
EventVariableValue.ValueInfo(int pos, int cnt)
          Construct an instance.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
protected  java.lang.Object readResolve()
          Deserialise: use constructor for validation, defensive copying, etc.
 void validateObject()
          Check that the object state is consistent and legal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rank

public final int rank
Rank: 0 means top, ie highest count; non-negative.


count

public final int count
Count is count of this value; strictly positive.


serialVersionUID

private static final long serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/.

See Also:
Constant Field Values
Constructor Detail

EventVariableValue.ValueInfo

EventVariableValue.ValueInfo(int pos,
                             int cnt)
Construct an instance. Only needs to be constructed locally, so this need not be public.

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

readResolve

protected java.lang.Object readResolve()
Deserialise: use constructor for validation, defensive copying, etc.


validateObject

public void validateObject()
                    throws java.io.InvalidObjectException
Check that the object state is consistent and legal.

Specified by:
validateObject in interface java.io.ObjectInputValidation
Throws:
java.io.InvalidObjectException

DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.