Vehicle.VehicleType

  • Vehicle.VehicleType is an annotation that indicates the type of vehicle.

  • It defines five constants: AUTO, TAXI, TRUCK, TWO_WHEELER, and UNKNOWN, 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.Annotation interface, such as annotationType(), equals(), hashCode(), and toString().

public static abstract @interface Vehicle.VehicleType implements Annotation

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.

Constant Value: 1

public static final int TAXI

The vehicle is a taxi.

Constant Value: 2

public static final int TRUCK

The vehicle is a truck.

Constant Value: 3

public static final int TWO_WHEELER

The vehicle has two wheels; for example, it is a scooter.

Constant Value: 4

public static final int UNKNOWN

The vehicle type is unknown.

Constant Value: 0