nenok.net
Class Envelope

java.lang.Object
  extended by nenok.net.Envelope
All Implemented Interfaces:
Serializable

public class Envelope
extends Object
implements Serializable

This class represents the communication envelope to store valuations. Its main purpose is to attach identifiers to valuation objects without modifying the valuation hierarchy.

Version:
$LastChangedRevision: 556 $
$LastChangedDate: 2008-03-26 14:21:45 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly
See Also:
Serialized Form

Constructor Summary
Envelope(Valuation valuation)
          Constructor:
Envelope(Valuation valuation, Uuid envID)
          Constructor:
 
Method Summary
 boolean equals(Object o)
           
 Uuid getID()
           
 Valuation getValuation()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Envelope

public Envelope(Valuation valuation)
Constructor:

Parameters:
valuation - The valuation to be wrapped in this envelope.

Envelope

public Envelope(Valuation valuation,
                Uuid envID)
Constructor:

Parameters:
valuation - The valuation to be wrapped in this envelope.
envID - The envelope's unique identifier.
Method Detail

getID

public Uuid getID()
Returns:
Returns the envelope identifier.

getValuation

public Valuation getValuation()
Returns:
Returns the valuation wrapped in this envelope.

equals

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

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()