18 package org.turro.interest;
20 import java.util.Objects;
21 import java.util.Optional;
22 import org.turro.entities.IElephantEntity;
23 import org.turro.participation.ParticipationReason;
33 private final boolean reversed;
38 this.reversed = reversed;
54 return Optional.ofNullable(entity)
55 .map(e -> e.getLabel())
64 hash = 71 * hash + Objects.hashCode(this.reason);
65 hash = 71 * hash + Objects.hashCode(this.entity.
getPath());
77 if (getClass() != obj.getClass()) {
81 if (this.reason != other.reason) {
Interest(ParticipationReason reason, IElephantEntity entity, boolean reversed)
ParticipationReason getReason()
boolean equals(Object obj)
IElephantEntity getEntity()