TripName

public abstract class TripName extends Object

Representation of TripName with convenience functions to return composing provider and trip IDs.

Public Constructor Summary

Public Method Summary

static TripName
create(String tripName)
Converts from string trip name to TripName instance.
static TripName
create(String providerId, String tripId)
Creates a TripName instance for the given provider ID and trip ID.
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 TripName instance for the given trip name.

public static TripName create (String providerId, String tripId)

Creates a TripName instance for the given provider ID and trip ID.

Parameters
providerId The provider ID.
tripId The trip ID.
Returns
  • A TripName instance for the given provider ID and trip ID.

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.