Class DriverLicenseDetailedInfo

  • All Implemented Interfaces:

    public final class DriverLicenseDetailedInfo
    extends java.lang.Object
    implements android.os.Parcelable
    Driver's license specific data.
    • 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<DriverLicenseDetailedInfo> CREATOR  
      • Fields inherited from interface android.os.Parcelable

    • Constructor Summary

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

      • DriverLicenseDetailedInfo

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

      • getRestrictions

        public java.lang.String getRestrictions()
        The restrictions to driving privileges for the driver license owner.
      • getEndorsements

        public java.lang.String getEndorsements()
        The additional privileges granted to the driver license owner.
      • getVehicleClass

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

        public VehicleClassInfo[] getVehicleClassesInfo()
        The additional information on vehicle class.
      • getConditions

        public java.lang.String getConditions()
        The driver license conditions.
      • 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 DriverLicenseDetailedInfo createFromNative​(@NonNull
                                                                 java.lang.String restrictions,
                                                                 java.lang.String endorsements,
                                                                 java.lang.String vehicleClass,
                                                                 java.lang.String conditions,
                                                                 VehicleClassInfo[] vehicleClassesInfo)
        This method is called from native code to build DriverLicenseDetailedInfo 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