public class RoadblockDescription
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATE_FORMAT
The date format used for road block start and end times in the intent string
|
| Constructor and Description |
|---|
RoadblockDescription(long id,
double latitude,
double longitude,
double azimuth,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
Constructor for a description
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
double |
getAzimuth()
Returns the azimuth of the roadblock
|
int |
getEmergencyClass()
Returns the emergency class
|
java.util.Date |
getEndDate()
Returns the end date
|
long |
getId()
Returns the id
|
double |
getLatitude()
Returns the latitude of the roadblock
|
double |
getLongitude()
Returns the longitude of the roadblock
|
java.util.Date |
getStartDate()
Returns the start date
|
int |
hashCode() |
static java.util.List<RoadblockDescription> |
parseStringList(java.lang.String input)
Parse a
List of RoadblockDescriptions from a string that has the format, that would be created by the intent builder RoadblockIntentBuilder |
java.lang.String |
toString() |
public static final java.lang.String DATE_FORMAT
public RoadblockDescription(long id,
double latitude,
double longitude,
double azimuth,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
id - the idlongitude - the longitudelatitude - the latitudeazimuth - the azimuth IN DEGREESemergencyClass - the emergency classstartDate - the time from which the roadblock is validendDate - the time until which the roadblock is validpublic java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.List<RoadblockDescription> parseStringList(java.lang.String input) throws java.text.ParseException
List of RoadblockDescriptions from a string that has the format, that would be created by the intent builder RoadblockIntentBuilderinput - the stringjava.text.ParseException - thrown if a start or an end date of a roadblock in the input is not in the correct format DATE_FORMATpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic double getLongitude()
public double getLatitude()
public double getAzimuth()
public long getId()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public int getEmergencyClass()