se.citerus.dddsample.domain.model.voyage
Class Schedule

java.lang.Object
  extended by se.citerus.dddsample.domain.model.voyage.Schedule
All Implemented Interfaces:
java.io.Serializable, ValueObject<Schedule>

public class Schedule
extends java.lang.Object
implements ValueObject<Schedule>

A voyage schedule.

See Also:
Serialized Form

Field Summary
static Schedule EMPTY
           
 
Method Summary
 java.util.List<CarrierMovement> carrierMovements()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean sameValueAs(Schedule other)
          Value objects compare by the values of their attributes, they don't have an identity.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final Schedule EMPTY
Method Detail

carrierMovements

public java.util.List<CarrierMovement> carrierMovements()
Returns:
Carrier movements.

sameValueAs

public boolean sameValueAs(Schedule other)
Description copied from interface: ValueObject
Value objects compare by the values of their attributes, they don't have an identity.

Specified by:
sameValueAs in interface ValueObject<Schedule>
Parameters:
other - The other value object.
Returns:
true if the given value object's and this value object's attributes are the same.

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


Copyright © 2009. All Rights Reserved.