View Javadoc

1   package se.citerus.dddsample.domain.model.cargo;
2   
3   import se.citerus.dddsample.domain.shared.ValueObject;
4   
5   /**
6    * Represents the different transport statuses for a cargo.
7    */
8   public enum TransportStatus implements ValueObject<TransportStatus> {
9     NOT_RECEIVED, IN_PORT, ONBOARD_CARRIER, CLAIMED, UNKNOWN;
10  
11    @Override
12    public boolean sameValueAs(final TransportStatus other) {
13      return this.equals(other);
14    }
15  }