Class ModelClass

  • All Implemented Interfaces:
    android.os.Parcelable, java.lang.Comparable<ModelClass>

    public class ModelClass
    extends java.lang.Object
    implements android.os.Parcelable, java.lang.Comparable<ModelClass>
    • 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<ModelClass> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelClass()
      model class
      ModelClass​(java.lang.String date, java.lang.String time, int systolic, int diastolic, int heart_rate)
      data
      ModelClass​(java.lang.String date, java.lang.String time, int systolic, int diastolic, int heart_rate, java.lang.String comment)
      data
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(ModelClass record)  
      int describeContents()  
      java.lang.String getComment()
      method that gets comment
      java.lang.String getDate()
      method that gets date
      int getDiastolic()
      method that gets diastolic value
      int getHeartRate()
      method that gets heart rate
      int getSystolic()
      method that gets systolic value
      java.lang.String getTime()
      method that gets time
      void setComment​(java.lang.String comment)
      method that Sets comment
      void setDate​(java.lang.String date)
      method that Sets date
      void setDiastolic​(int diastolic)
      method that Sets diastolic value
      void setHeart_rate​(int heart_rate)
      method that Sets heart rate
      void setSystolic​(int systolic)
      method that Sets systolic value
      void setTime​(java.lang.String time)
      method that Sets time
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

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

      • ModelClass

        public ModelClass​(java.lang.String date,
                          java.lang.String time,
                          int systolic,
                          int diastolic,
                          int heart_rate,
                          java.lang.String comment)
        data
        Parameters:
        date -
        time -
        systolic -
        diastolic -
        heart_rate -
        comment -
      • ModelClass

        public ModelClass​(java.lang.String date,
                          java.lang.String time,
                          int systolic,
                          int diastolic,
                          int heart_rate)
        data
        Parameters:
        date -
        time -
        systolic -
        diastolic -
        heart_rate -
      • ModelClass

        public ModelClass()
        model class
    • Method Detail

      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Parameters:
        dest -
        flags -
      • describeContents

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

        public java.lang.String getDate()
        method that gets date
        Returns:
        the date user inserted
      • getTime

        public java.lang.String getTime()
        method that gets time
        Returns:
        the time user inserted
      • getSystolic

        public int getSystolic()
        method that gets systolic value
        Returns:
        the systolic user inserted
      • getDiastolic

        public int getDiastolic()
        method that gets diastolic value
        Returns:
        the diastolic user inserted
      • getHeartRate

        public int getHeartRate()
        method that gets heart rate
        Returns:
        the heartrate user inserted
      • getComment

        public java.lang.String getComment()
        method that gets comment
        Returns:
        the comment user inserted
      • setDate

        public void setDate​(java.lang.String date)
        method that Sets date
        Parameters:
        date - the date user inserted
      • setTime

        public void setTime​(java.lang.String time)
        method that Sets time
        Parameters:
        time - the time user inserted
      • setSystolic

        public void setSystolic​(int systolic)
        method that Sets systolic value
        Parameters:
        systolic - the systolic user inserted
      • setDiastolic

        public void setDiastolic​(int diastolic)
        method that Sets diastolic value
        Parameters:
        diastolic - the diastolic user inserted
      • setHeart_rate

        public void setHeart_rate​(int heart_rate)
        method that Sets heart rate
        Parameters:
        heart_rate - the heartrate user inserted
      • setComment

        public void setComment​(java.lang.String comment)
        method that Sets comment
        Parameters:
        comment - the comment user inserted
      • compareTo

        public int compareTo​(ModelClass record)
        Specified by:
        compareTo in interface java.lang.Comparable<ModelClass>
        Parameters:
        record -
        Returns: