Class RecordList


  • public class RecordList
    extends java.lang.Object
    This is class for manipulation of data in the list
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.ArrayList<com.example.cardiosync.ModelClass> mcl  
    • Constructor Summary

      Constructors 
      Constructor Description
      RecordList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRecord​(com.example.cardiosync.ModelClass modelClass)
      This is the method for adding new record in the list
      int count()
      This method is for returning the size of the list
      void deleteRecord​(int position)
      This is the method for deleting record from the list
      • Methods inherited from class java.lang.Object

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

      • mcl

        public static java.util.ArrayList<com.example.cardiosync.ModelClass> mcl
    • Constructor Detail

      • RecordList

        public RecordList()
    • Method Detail

      • addRecord

        public void addRecord​(com.example.cardiosync.ModelClass modelClass)
        This is the method for adding new record in the list
        Parameters:
        modelClass - this is record that will be added in the list
      • deleteRecord

        public void deleteRecord​(int position)
        This is the method for deleting record from the list
        Parameters:
        position - this is position of the record that will be deleted from the list
      • count

        public int count()
        This method is for returning the size of the list
        Returns:
        Return the size of list of record