Class ShipDueDate
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.impl.ShipDueDate
-
- All Implemented Interfaces:
IShipDueDate
,java.lang.Comparable<IShipDueDate>
public class ShipDueDate extends java.lang.Object implements IShipDueDate, java.lang.Comparable<IShipDueDate>
Implementation of the due date for ships. The Ship due date can be compared for ordering based on the due date.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Mar 9, 2013
-
-
Constructor Summary
Constructors Constructor Description ShipDueDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(IShipDueDate other)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.IShipDueDate
getDueDate, getShip
-
-
-
-
Field Detail
-
ship
private final IShip ship
-
dueDate
private final java.time.LocalDateTime dueDate
-
-
Method Detail
-
compareTo
public int compareTo(IShipDueDate other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IShipDueDate>
-
-