Class DBusConnection.PeerSet
java.lang.Object
org.freedesktop.dbus.DBusConnection.PeerSet
- All Implemented Interfaces:
Iterable<String>, Collection<String>, Set<String>, DBusSigHandler<DBus.NameOwnerChanged>
- Enclosing class:
DBusConnection
public class DBusConnection.PeerSet
extends Object
implements 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> addresses) voidclear()booleanbooleancontainsAll(Collection<?> os) booleanvoidHandle a signal.inthashCode()booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> os) booleanretainAll(Collection<?> os) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface Set
spliterator
-
Constructor Details
-
PeerSet
public 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
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceSet<String>
-
equals
-
hashCode
-
isEmpty
-
iterator
-
remove
-
removeAll
-
retainAll
-
size
-
toArray
-
toArray
-