java.lang.Object
stud.ntnu.idatt1005.pantrypal.models.Model
This is an abstract class representing a model. It contains the key of the model
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
key
-
-
Constructor Details
-
Model
protected Model()Default constructor for Model class. Generates a random UUID as the key for the model. -
Model
Constructor for Model class.- Parameters:
key
- the key of the model
-
-
Method Details
-
getKey
Gets the string key.- Returns:
- the key
-