@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;
            Occupant that = (Occupant) o;
            return Objects.equals(roomName, that.roomName) && Objects.equals(nickname, that.nickname) && Objects.equals(realJID, that.realJID);
        }
Representation of a user that is an occupant of a chatroom.
xmppserver/src/main/java/org/jivesoftware/openfire/muc/spi/OccupantManager.java