public class Transfer extends Object
Constructor and Description |
---|
Transfer(String station)
Initializes this transfer with the given station as its station
and now as the given issue date.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Tests if this transfer is the same as the given object, that is,
the object is not null, it an instance of this class and has the
same issue date and station as this transfer.
|
int |
getDay()
The day of the year at which this transfer has been issued.
|
Date |
getIssueDate()
Returns the issue date of this transfer.
|
int |
getSerialNumber()
Returns the serial number of this transfer.
|
String |
getStation()
Returns the station at which this transfer has been issued.
|
static int |
getTotalNumber()
Returns the total number of transfers that have been created.
|
String |
toString()
Returns a string representation of this transfer.
|
public Transfer(String station)
station
- the station of the transfer.public Date getIssueDate()
public String getStation()
public int getDay()
public int getSerialNumber()
public static int getTotalNumber()
public boolean equals(Object obj)
public String toString()