Package org.freedesktop.dbus.connections
Class PeerSet
java.lang.Object
org.freedesktop.dbus.connections.PeerSet
- All Implemented Interfaces:
Iterable<String>,Collection<String>,Set<String>,DBusSigHandler<DBus.NameOwnerChanged>
Add addresses of peers to a set which will watch for them to
disappear and automatically remove them from the set.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> _addresses) voidclear()booleanbooleancontainsAll(Collection<?> _os) booleanvoidhandle(DBus.NameOwnerChanged _noc) Handle a signal.inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> _os) booleanretainAll(Collection<?> _os) intsize()Object[]toArray()<T> T[]toArray(T[] _a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Field Details
-
logger
private final org.slf4j.Logger logger -
addresses
-
-
Constructor Details
-
PeerSet
-
-
Method Details
-
handle
Description copied from interface:DBusSigHandlerHandle a signal.- Specified by:
handlein interfaceDBusSigHandler<DBus.NameOwnerChanged>- Parameters:
_noc- The signal to handle. If such a class exists, the signal will be an instance of the class with the correct type signature. Otherwise it will be an instance of DBusSignal
-
add
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceSet<String>
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
iterator
-
remove
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] _a)
-