Package org.grp1.model
Class Record
java.lang.Object
org.grp1.model.Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatRepresents the number of average rating in this recordprivate intRepresents the number of votes for this recordprivate StringRepresents the tconst of this record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatThe function to return the average rating of the recordintgetKey()The function to return the key of the recordintThe function to return the number of votesThe function to get the tconst of the recordvoidsetAverageRating(float averageRating) The function to set the average rating of the recordvoidsetNumVotes(int numVotes) The function to set the number of votesvoidThe function to set the tconst of the record
-
Field Details
-
tconst
Represents the tconst of this record -
averageRating
private float averageRatingRepresents the number of average rating in this record -
numVotes
private int numVotesRepresents the number of votes for this record
-
-
Constructor Details
-
Record
Constructor to instantiate record- Parameters:
tconst- The tconst of the recordaverageRating- The average rating of this recordnumVotes- The number of votes of this record
-
-
Method Details
-
getKey
public int getKey()The function to return the key of the record- Returns:
- The key of the record
-
getNumVotes
public int getNumVotes()The function to return the number of votes- Returns:
- The number of votes of the record
-
setNumVotes
public void setNumVotes(int numVotes) The function to set the number of votes- Parameters:
numVotes- The number of votes of the record
-
getAverageRating
public float getAverageRating()The function to return the average rating of the record- Returns:
- The average rating of the record
-
setAverageRating
public void setAverageRating(float averageRating) The function to set the average rating of the record- Parameters:
averageRating- The average rating of the record
-
getTconst
The function to get the tconst of the record- Returns:
- The tconst of the record
-
setTconst
The function to set the tconst of the record- Parameters:
tconst- The tconst of the record
-