Package com.example.cardiosync
Class RecordList
- java.lang.Object
-
- com.example.cardiosync.RecordList
-
public class RecordList extends java.lang.ObjectThis 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 voidaddRecord(com.example.cardiosync.ModelClass modelClass)This is the method for adding new record in the listintcount()This method is for returning the size of the listvoiddeleteRecord(int position)This is the method for deleting record from the list
-
-
-
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
-
-