public final class DiscoveryEvent
extends java.lang.Object
JDPClient when a Discoverable is
FOUND, LOST or CHANGED.| Modifier and Type | Class and Description |
|---|---|
static class |
DiscoveryEvent.Kind |
| Modifier and Type | Field and Description |
|---|---|
private Discoverable |
discoverable |
private DiscoveryEvent.Kind |
kind |
| Constructor and Description |
|---|
DiscoveryEvent(DiscoveryEvent.Kind kind,
Discoverable discoverable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Discoverable |
getDiscoverable() |
DiscoveryEvent.Kind |
getKind()
The kind of discovery.
|
java.lang.String |
toString() |
private final DiscoveryEvent.Kind kind
private final Discoverable discoverable
public DiscoveryEvent(DiscoveryEvent.Kind kind, Discoverable discoverable)
kind - the type of discovery that was made.discoverable - what was discovered.public DiscoveryEvent.Kind getKind()
public Discoverable getDiscoverable()
public java.lang.String toString()
toString in class java.lang.Object