se.citerus.dddsample.domain.model.cargo
Class HandlingActivity
java.lang.Object
se.citerus.dddsample.domain.model.cargo.HandlingActivity
- All Implemented Interfaces:
- java.io.Serializable, ValueObject<HandlingActivity>
public class HandlingActivity
- extends java.lang.Object
- implements ValueObject<HandlingActivity>
A handling activity represents how and where a cargo can be handled,
and can be used to express predictions about what is expected to
happen to a cargo in the future.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
HandlingActivity
public HandlingActivity(HandlingEvent.Type type,
Location location)
HandlingActivity
public HandlingActivity(HandlingEvent.Type type,
Location location,
Voyage voyage)
type
public HandlingEvent.Type type()
location
public Location location()
voyage
public Voyage voyage()
sameValueAs
public boolean sameValueAs(HandlingActivity 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<HandlingActivity>
- Parameters:
other
- The other value object.
- Returns:
true
if the given value object's and this value object's attributes are the same.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
Copyright © 2009. All Rights Reserved.