Come Trovare un Falegname per Realizzare Banconi per Negozi
Scopri come trovare i migliori falegnami per realizzare banconi di negozi su Ernesto.it. Offriamo soluzioni personalizzate e di alta qualità per la tua attività commerciale. Approfitta della nostra esperienza in ristrutturazioni e progettazione edilizia per creare spazi unici e funzionali.
Trova professionisti vicino a te
Trova professionisti
/*
* Copyright (c) 2020.
*
* This file is part of drasyl.
*
* drasyl is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* drasyl is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with drasyl. If not, see .
*/
package org.drasyl.plugin.groups.manager.data;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.drasyl.identity.CompressedPublicKey;
import java.util.Objects;
@SuppressWarnings("java:S2160")
public class GroupMember {
private final CompressedPublicKey member;
private final MemberRole role;
@JsonCreator
public GroupMember(@JsonProperty("member") final CompressedPublicKey member,
@JsonProperty("role") final MemberRole role) {
this.member = member;
this.role = role;
}
public CompressedPublicKey getMember() {
return member;
}
public MemberRole getRole() {
return role;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final GroupMember that = (GroupMember) o;
return Objects.equals(member, that.member) &&
role == that.role;
}
@Override
public int hashCode() {
return Objects.hash(member, role);
}
}