Skip to content

Commit ea4f942

Browse files
authored
the Lord gave to every man
Who then is Paul, and who is Apollos, but ministers by whom you believed, even as the Lord gave to every man? (1Cor 3:5)
1 parent a7c6574 commit ea4f942

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • Multithreading/task24/task3608/MVC-9
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
//Who then is Paul, and who is Apollos, but ministers by whom you believed, even as the Lord gave to every man? (1Cor 3:5)
3+
4+
package com.javarush.task.task36.task3608;
5+
6+
import com.javarush.task.task36.task3608.bean.User;
7+
8+
public final class Util {
9+
public static final String DELETED_MARKER = " (deleted)";
10+
11+
public static boolean isUserDeleted(User user) {
12+
return user.getName().endsWith(DELETED_MARKER);
13+
}
14+
15+
public static void markDeleted(User user) {
16+
if (User.NULL_USER != user && !Util.isUserDeleted(user)) {
17+
user.setName(user.getName() + DELETED_MARKER);
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)