public class DirectoryEvent extends GroupEvent<DirectoryEvent.Type,Directory>
Modifier and Type | Class and Description |
---|---|
static class |
DirectoryEvent.Builder |
static class |
DirectoryEvent.Type |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
deviceId()
Present only if the event
DirectoryEvent.Type is DirectoryEvent.Type.DEVICE_ATTACHED or DirectoryEvent.Type.DEVICE_DETACHED . |
Directory |
directory() |
boolean |
equals(Object obj) |
int |
hashCode() |
static DirectoryEvent.Builder |
newBuilder() |
String |
toString() |
DirectoryEvent.Type |
type() |
identifier, path, source
public static DirectoryEvent.Builder newBuilder()
public DirectoryEvent.Type type()
type
in class GroupEvent<DirectoryEvent.Type,Directory>
public Directory directory()
public Optional<String> deviceId()
DirectoryEvent.Type
is DirectoryEvent.Type.DEVICE_ATTACHED
or DirectoryEvent.Type.DEVICE_DETACHED
. Indicates
the device that has been attached/detached.public int hashCode()
hashCode
in class GroupEvent<DirectoryEvent.Type,Directory>
public boolean equals(Object obj)
equals
in class GroupEvent<DirectoryEvent.Type,Directory>
Copyright © 2022 Bosch.IO GmbH. All rights reserved.