Changeset 3fe36de in Git for src/main/java/com/wediscussmovies/project/model
- Timestamp:
- 02/09/22 03:14:08 (3 years ago)
- Branches:
- main
- Children:
- 967b414
- Parents:
- c02189f
- Location:
- src/main/java/com/wediscussmovies/project/model
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/wediscussmovies/project/model/Movie.java
rc02189f r3fe36de 95 95 96 96 97 97 public String getShortTitle(){ 98 int to = 20; 99 if (title.length() < to) 100 to = title.length(); 101 if(to<20) 102 return title; 103 return title.substring(0, to) + "..."; 104 } 98 105 99 106 -
src/main/java/com/wediscussmovies/project/model/Person.java
rc02189f r3fe36de 92 92 } 93 93 94 public boolean hasGradeFromUser(User user){ 95 for(PersonRates p: personRates){ 96 if(p.getUser().getUserId() == user.getUserId()) 97 return true; 98 } 99 return false; 100 } 101 94 102 }
Note:
See TracChangeset
for help on using the changeset viewer.