Package org.drasyl.peer
Class PeerInformation
- java.lang.Object
-
- org.drasyl.peer.PeerInformation
-
public class PeerInformation extends Object
Contains information on a specific peer (e.g. known endpoints).This is an immutable object.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<Endpoint>
endpoints
static InternPool<PeerInformation>
POOL
-
Constructor Summary
Constructors Modifier Constructor Description protected
PeerInformation(Set<Endpoint> endpoints)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<Endpoint>
getEndpoints()
int
hashCode()
PeerInformation
intern()
static PeerInformation
of()
static PeerInformation
of(Set<Endpoint> endpoints)
String
toString()
-
-
-
Field Detail
-
POOL
public static final InternPool<PeerInformation> POOL
-
-
Method Detail
-
intern
public PeerInformation intern()
-
of
public static PeerInformation of(Set<Endpoint> endpoints)
-
of
public static PeerInformation of()
-
-