ref_send API 2.17
defensive programming in Java

org.ref_send.log
Class Turn

java.lang.Object
  extended by org.ref_send.log.Turn
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Turn>, Immutable, Powerless, Selfless, Record

public final class Turn
extends java.lang.Object
implements java.lang.Comparable<Turn>, Powerless, Record, java.io.Serializable

An event loop turn identifier.

See Also:
Serialized Form

Field Summary
 java.lang.String loop
          URI for the event loop
 long number
          local turn number
 
Constructor Summary
Turn(java.lang.String loop, long number)
          Constructs an instance.
 
Method Summary
 int compareTo(Turn o)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loop

public final java.lang.String loop
URI for the event loop


number

public final long number
local turn number

Constructor Detail

Turn

public Turn(java.lang.String loop,
            long number)
Constructs an instance.

Parameters:
loop - loop
number - number
Method Detail

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface Selfless
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(Turn o)
Specified by:
compareTo in interface java.lang.Comparable<Turn>

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.