Class VehicleClassInfo
- java.lang.Object
-
- com.microblink.entities.recognizers.blinkid.generic.VehicleClassInfo
-
- All Implemented Interfaces:
android.os.Parcelable
public final class VehicleClassInfo extends java.lang.Object implements android.os.Parcelable
The additional information on vehicle class.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<VehicleClassInfo>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
VehicleClassInfo(android.os.Parcel in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VehicleClassInfo
createFromNative(DateResult effectiveDate, DateResult expiryDate, java.lang.String vehicleClass, java.lang.String licenceType)
This method is called from native code to buildVehicleClassInfo
from native object.int
describeContents()
DateResult
getEffectiveDate()
The date since licence is effective.DateResult
getExpiryDate()
The date of expiry of licence.java.lang.String
getLicenceType()
The type of driver licence.java.lang.String
getVehicleClass()
The type of vehicle the driver license owner has privilege to drive.boolean
isEmpty()
Checks whether data is empty.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<VehicleClassInfo> CREATOR
-
-
Method Detail
-
getEffectiveDate
@NonNull public DateResult getEffectiveDate()
The date since licence is effective.
-
getExpiryDate
@NonNull public DateResult getExpiryDate()
The date of expiry of licence.
-
getVehicleClass
@NonNull public java.lang.String getVehicleClass()
The type of vehicle the driver license owner has privilege to drive.
-
getLicenceType
@NonNull public java.lang.String getLicenceType()
The type of driver licence.
-
isEmpty
public boolean isEmpty()
Checks whether data is empty. Data is empty if all fields are empty.- Returns:
true
if data is empty, false otherwise.
-
createFromNative
@NonNull public static VehicleClassInfo createFromNative(@NonNull DateResult effectiveDate, @NonNull DateResult expiryDate, @NonNull java.lang.String vehicleClass, @NonNull java.lang.String licenceType)
This method is called from native code to buildVehicleClassInfo
from native object.
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-