jfreerails.world.station
Class ConvertedAtStation
java.lang.Object
jfreerails.world.station.ConvertedAtStation
- All Implemented Interfaces:
- java.io.Serializable, FreerailsSerializable
public class ConvertedAtStation
- extends java.lang.Object
- implements FreerailsSerializable
Records which cargos are converted to other cargos at a station.
- Author:
- Luke
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
NOT_CONVERTED
private static final int NOT_CONVERTED
- See Also:
- Constant Field Values
convertedTo
private final ImInts convertedTo
ConvertedAtStation
public ConvertedAtStation(int[] convertedTo)
emptyInstance
public static ConvertedAtStation emptyInstance(int numberOfCargoTypes)
emptyConversionArray
public static int[] emptyConversionArray(int numberOfCargoTypes)
isCargoConverted
public boolean isCargoConverted(int cargoNumber)
getConversion
public int getConversion(int cargoNumber)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object