◆ InterestCategory()
org.turro.interest.InterestCategory.InterestCategory |
( |
ParticipationReason |
reason, |
|
|
boolean |
reversed |
|
) |
| |
◆ equals()
boolean org.turro.interest.InterestCategory.equals |
( |
Object |
obj | ) |
|
Definition at line 85 of file InterestCategory.java.
92 if (getClass() != obj.getClass()) {
96 if (this.reversed != other.reversed) {
99 return this.reason == other.reason;
InterestCategory(ParticipationReason reason, boolean reversed)
◆ getIcon()
String org.turro.interest.InterestCategory.getIcon |
( |
| ) |
|
Definition at line 60 of file InterestCategory.java.
61 return switch(reason) {
62 case REASON_SEEN ->
"eye";
63 case REASON_ADHERE ->
"sticky note";
64 case REASON_APPLY ->
"hand point up";
65 case REASON_FOLLOW -> reversed ?
"user friends" :
"user friends";
66 case REASON_INFO ->
"info";
67 case REASON_LIKE -> reversed ?
"thumbs up" :
"thumbs up";
68 case REASON_PARTICIPATE ->
"users cog";
69 case REASON_SPAM ->
"comment slash";
70 default ->
"question";
◆ getLabel()
String org.turro.interest.InterestCategory.getLabel |
( |
| ) |
|
Definition at line 46 of file InterestCategory.java.
47 return switch(reason) {
48 case REASON_SEEN ->
"Seen";
49 case REASON_ADHERE ->
"Adhered to";
50 case REASON_APPLY ->
"Applied to";
51 case REASON_FOLLOW -> reversed ?
"Followers" :
"Following";
52 case REASON_INFO ->
"Information";
53 case REASON_LIKE -> reversed ?
"Liked me" :
"Liked";
54 case REASON_PARTICIPATE ->
"Participating";
55 case REASON_SPAM ->
"Marked as SPAM";
◆ getReason()
◆ hashCode()
int org.turro.interest.InterestCategory.hashCode |
( |
| ) |
|
Definition at line 77 of file InterestCategory.java.
79 hash = 67 * hash + Objects.hashCode(this.reason);
80 hash = 67 * hash + (this.reversed ? 1 : 0);
◆ isReversed()
boolean org.turro.interest.InterestCategory.isReversed |
( |
| ) |
|
The documentation for this class was generated from the following file: