Skip to content

Commit

Permalink
toString method for all models
Browse files Browse the repository at this point in the history
  • Loading branch information
janvde committed Aug 29, 2017
1 parent 61c07db commit d673993
Show file tree
Hide file tree
Showing 20 changed files with 209 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ public Agency[] newArray(int size) {
return new Agency[size];
}
};

@Override
public String toString() {
return "Agency{" +
"name='" + name + '\'' +
", url='" + url + '\'' +
", phone='" + phone + '\'' +
", icon=" + icon +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,12 @@ public AirCodeshare[] newArray(int size) {
return new AirCodeshare[size];
}
};

@Override
public String toString() {
return "AirCodeshare{" +
"airline=" + airline +
", flight='" + flight + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,25 @@ public AirHop[] newArray(int size) {
return new AirHop[size];
}
};

@Override
public String toString() {
return "AirHop{" +
"depPlace=" + depPlace +
", arrPlace=" + arrPlace +
", depTerminal='" + depTerminal + '\'' +
", arrTerminal='" + arrTerminal + '\'' +
", depTime='" + depTime + '\'' +
", arrTime='" + arrTime + '\'' +
", flight='" + flight + '\'' +
", duration=" + duration +
", airline='" + airline + '\'' +
", operatingAirline='" + operatingAirline + '\'' +
", aircraft='" + aircraft + '\'' +
", dayChange=" + dayChange +
", layoverDuration=" + layoverDuration +
", layoverDayChange=" + layoverDayChange +
", codeshares=" + codeshares +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,12 @@ public AirSegment[] newArray(int size) {
return new AirSegment[size];
}
};

@Override
public String toString() {
return "AirSegment{" +
"outbound=" + outbound +
", returns=" + returns +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,13 @@ public Aircraft[] newArray(int size) {
return new Aircraft[size];
}
};

@Override
public String toString() {
return "Aircraft{" +
"code='" + code + '\'' +
", manufacturer='" + manufacturer + '\'' +
", model='" + model + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,13 @@ public Airline[] newArray(int size) {
}
};

@Override
public String toString() {
return "Airline{" +
"code='" + code + '\'' +
", name='" + name + '\'' +
", url='" + url + '\'' +
", icon=" + icon +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,13 @@ public Alternative[] newArray(int size) {
return new Alternative[size];
}
};

@Override
public String toString() {
return "Alternative{" +
"firstSegment=" + firstSegment +
", lastSegment=" + lastSegment +
", route=" + route +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ public boolean isDay(int day) {
return (flag & day) == day;
}


@Override
public String toString() {
return "DayFlags{" +
"flag=" + flag +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,14 @@ public ExternalLink[] newArray(int size) {
return new ExternalLink[size];
}
};

@Override
public String toString() {
return "ExternalLink{" +
"text='" + text + '\'' +
", url='" + url + '\'' +
", displayUrl='" + displayUrl + '\'' +
", moustacheUrl='" + moustacheUrl + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,15 @@ public Icon[] newArray(int size) {
return new Icon[size];
}
};

@Override
public String toString() {
return "Icon{" +
"url='" + url + '\'' +
", x=" + x +
", y=" + y +
", w=" + w +
", h=" + h +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,19 @@ public IndicativePrice[] newArray(int size) {
return new IndicativePrice[size];
}
};

@Override
public String toString() {
return "IndicativePrice{" +
"name='" + name + '\'' +
", price=" + price +
", priceLow=" + priceLow +
", priceHigh=" + priceHigh +
", currency='" + currency + '\'' +
", nativePrice=" + nativePrice +
", nativePriceLow=" + nativePriceLow +
", nativePriceHigh=" + nativePriceHigh +
", nativeCurrency='" + nativeCurrency + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@ public Position[] newArray(int size) {
return new Position[size];
}
};

@Override
public String toString() {
return "Position{" +
"mLatitude=" + mLatitude +
", mLongitude=" + mLongitude +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,20 @@ public Route[] newArray(int size) {
return new Route[size];
}
};

@Override
public String toString() {
return "Route{" +
"name='" + name + '\'' +
", depPlace=" + depPlace +
", arrPlace=" + arrPlace +
", distance=" + distance +
", totalDuration=" + totalDuration +
", totalTransitDuration=" + totalTransitDuration +
", totalTransferDuration=" + totalTransferDuration +
", indicativePrices=" + indicativePrices +
", segments=" + segments +
", alternatives=" + alternatives +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,18 @@ public Segment[] newArray(int size) {
return new Segment[size];
}
};

@Override
public String toString() {
return "Segment{" +
"segmentKind='" + segmentKind + '\'' +
", depPlace=" + depPlace +
", arrPlace=" + arrPlace +
", vehicle=" + vehicle +
", distance=" + distance +
", transitDuration=" + transitDuration +
", transferDuration=" + transferDuration +
", indicativePrices=" + indicativePrices +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,17 @@ public SurfaceAgency[] newArray(int size) {
return new SurfaceAgency[size];
}
};

@Override
public String toString() {
return "SurfaceAgency{" +
"agency=" + agency +
", frequency=" + frequency +
", duration=" + duration +
", operatindDays=" + operatindDays +
", lineNames=" + lineNames +
", lineCodes=" + lineCodes +
", links=" + links +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ public SurfaceLineCode[] newArray(int size) {
return new SurfaceLineCode[size];
}
};

@Override
public String toString() {
return "SurfaceLineCode{" +
"code='" + code + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,11 @@ public SurfaceLineName[] newArray(int size) {
return new SurfaceLineName[size];
}
};

@Override
public String toString() {
return "SurfaceLineName{" +
"name='" + name + '\'' +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,14 @@ public SurfaceSegment[] newArray(int size) {
return new SurfaceSegment[size];
}
};


@Override
public String toString() {
return "SurfaceSegment{" +
"path='" + path + '\'' +
", stops=" + stops +
", agencies=" + agencies +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,13 @@ public SurfaceStop[] newArray(int size) {
return new SurfaceStop[size];
}
};

@Override
public String toString() {
return "SurfaceStop{" +
"place=" + place +
", transitDuration=" + transitDuration +
", stopDuration=" + stopDuration +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,12 @@ public Vehicle[] newArray(int size) {
return new Vehicle[size];
}
};

@Override
public String toString() {
return "Vehicle{" +
"name='" + name + '\'' +
", kind='" + kind + '\'' +
'}';
}
}

0 comments on commit d673993

Please sign in to comment.