Esempio n. 1
0
  @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());
  }
Esempio n. 2
0
 public StationName(StationName station) {
   this(station.name());
 }