summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/contributions/common-contribution
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/TripItem.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/TripItem.java b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/TripItem.java
index 5275f331a9..afef47bf33 100644
--- a/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/TripItem.java
+++ b/sandbox/travelsample/contributions/common-contribution/src/main/java/scatours/common/TripItem.java
@@ -206,6 +206,21 @@ public class TripItem {
}
@Override
+ public String toString(){
+ String tripString = "Trip: id " + this.tripId +
+ " type " + this.type +
+ " name " + this.name +
+ " description " + this.description +
+ " location " + this.location +
+ " fromDate " + this.fromDate +
+ " toDate " + this.toDate +
+ " price " + this.price +
+ " currency " + this.currency +
+ " link " + this.link;
+ return tripString;
+ }
+
+ @Override
public boolean equals(Object obj) {
if (obj instanceof TripItem){