@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof StationName)) { return false; } StationName that = (StationName) obj; return this.name().equals(that.name()); }
public StationName(StationName station) { this(station.name()); }