AI-generated Key Takeaways
-
TripNameis an abstract class that provides a representation of a trip's name along with functionalities to retrieve its provider and trip IDs. -
It offers methods to create a
TripNameinstance from either a complete trip name string or separate provider and trip IDs. -
TripNameincludes methods to access the trip name, provider ID, and trip ID associated with the trip.
Representation of TripName with convenience functions to return composing provider and trip ids.
Public Constructor Summary
|
TripName()
|
Public Method Summary
| static TripName | |
| static TripName | |
| abstract String |
getProviderId()
Gets the provider ID.
|
| abstract String |
getTripId()
Gets the trip ID.
|
| String |
getTripName()
Gets the trip name.
|
Inherited Method Summary
Public Constructors
public TripName ()
Public Methods
public static TripName create (String tripName)
Converts from string trip name to TripName instance.
Parameters
| tripName | The name of the trip. |
|---|
Returns
- A
TripNameinstance for the given trip name.
public abstract String getProviderId ()
Gets the provider ID.
Returns
- The provider ID.
public abstract String getTripId ()
Gets the trip ID.
Returns
- The trip ID.
public String getTripName ()
Gets the trip name.
Returns
- The trip name.