Class VehicleClassInfo

  • All Implemented Interfaces:

    public final class VehicleClassInfo
    extends java.lang.Object
    implements android.os.Parcelable
    The additional information on vehicle class.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Modifier and Type Field Description
      static android.os.Parcelable.Creator<VehicleClassInfo> CREATOR  
      • Fields inherited from interface android.os.Parcelable

    • Constructor Summary

      Modifier Constructor Description
      protected VehicleClassInfo​(android.os.Parcel in)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<VehicleClassInfo> CREATOR
    • Constructor Detail

      • VehicleClassInfo

        protected VehicleClassInfo​(@NonNull
                                   android.os.Parcel in)
    • Method Detail

      • getEffectiveDate

        public DateResult getEffectiveDate()
        The date since licence is effective.
      • getExpiryDate

        public DateResult getExpiryDate()
        The date of expiry of licence.
      • getVehicleClass

        public java.lang.String getVehicleClass()
        The type of vehicle the driver license owner has privilege to drive.
      • getLicenceType

        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.
        true if data is empty, false otherwise.
      • createFromNative

        public static VehicleClassInfo createFromNative​(@NonNull
                                                        DateResult effectiveDate,
                                                        DateResult expiryDate,
                                                        java.lang.String vehicleClass,
                                                        java.lang.String licenceType)
        This method is called from native code to build VehicleClassInfo from native object.
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable