Class Track.Id

  • All Implemented Interfaces:
    android.os.Parcelable
    Enclosing class:
    Track

    public static class Track.Id
    extends Object
    implements android.os.Parcelable
    The temporary id for the track.
    • Nested Class Summary

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

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

      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Id​(long id)
      Create a new id object with a given number.
      protected Id​(android.os.Parcel in)
      Create a new id object for parceling in Android.
    • Constructor Detail

      • Id

        public Id​(long id)
        Create a new id object with a given number.
        Parameters:
        id - The number for the id.
      • Id

        protected Id​(android.os.Parcel in)
        Create a new id object for parceling in Android.
        Parameters:
        in - The number for the id.
    • Method Detail

      • getId

        public long getId()
        Get the id.
        Returns:
        The id
      • describeContents

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

        public void writeToParcel​(android.os.Parcel parcel,
                                  int i)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object