Class DriverLicenseDetailedInfo

  • All Implemented Interfaces:
    android.os.Parcelable

    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

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

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

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

      • DriverLicenseDetailedInfo

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

      • getRestrictions

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

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

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

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

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

        @NonNull
        public static DriverLicenseDetailedInfo createFromNative​(@NonNull
                                                                 java.lang.String restrictions,
                                                                 @NonNull
                                                                 java.lang.String endorsements,
                                                                 @NonNull
                                                                 java.lang.String vehicleClass,
                                                                 @NonNull
                                                                 java.lang.String conditions,
                                                                 @NonNull
                                                                 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