AI-generated Key Takeaways
-
Vehicle.VehicleTypeis an annotation that indicates the type of vehicle. -
It defines five constants:
AUTO,TAXI,TRUCK,TWO_WHEELER, andUNKNOWN, representing different vehicle types. -
Each constant is associated with an integer value for easy identification.
-
The annotation provides information for journey-sharing and on-demand transportation services.
-
It inherits methods from the
java.lang.annotation.Annotationinterface, such asannotationType(),equals(),hashCode(), andtoString().
The type of vehicle.
Constant Summary
| int | AUTO | The vehicle is a traditional four-wheel automobile. |
| int | TAXI | The vehicle is a taxi. |
| int | TRUCK | The vehicle is a truck. |
| int | TWO_WHEELER | The vehicle has two wheels; for example, it is a scooter. |
| int | UNKNOWN | The vehicle type is unknown. |
Inherited Method Summary
Constants
public static final int AUTO
The vehicle is a traditional four-wheel automobile.
public static final int TAXI
The vehicle is a taxi.
public static final int TRUCK
The vehicle is a truck.
public static final int TWO_WHEELER
The vehicle has two wheels; for example, it is a scooter.
public static final int UNKNOWN
The vehicle type is unknown.