Class 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.
    • 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

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

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      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

        @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 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