19 package org.turro.interest;
21 import java.util.Objects;
22 import org.turro.participation.ParticipationReason;
31 private final boolean reversed;
35 this.reversed = reversed;
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";
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";
79 hash = 67 * hash + Objects.hashCode(this.reason);
80 hash = 67 * hash + (this.reversed ? 1 : 0);
92 if (getClass() != obj.getClass()) {
96 if (this.reversed != other.reversed) {
99 return this.reason == other.reason;
boolean equals(Object obj)
InterestCategory(ParticipationReason reason, boolean reversed)
ParticipationReason getReason()