nenok.net
Class Envelope
java.lang.Object
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:
- 1.1
- Author:
- Marc Pouly
- See Also:
- Serialized Form
Envelope
public Envelope(Valuation valuation)
- Constructor:
- Parameters:
valuation
- The valuation to be wrapped in this envelope.
Envelope
public Envelope(Valuation valuation,
net.jini.id.Uuid envID)
- Constructor:
- Parameters:
valuation
- The valuation to be wrapped in this envelope.envID
- The envelope's unique identifier.
getID
public net.jini.id.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()