Package org.freedesktop.dbus
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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends String> addresses) void
clear()
boolean
boolean
containsAll
(Collection<?> os) boolean
void
Handle a signal.int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> os) boolean
retainAll
(Collection<?> os) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
PeerSet
public PeerSet()
-
-
Method Details
-
handle
Description copied from interface:DBusSigHandler
Handle a signal.- Specified by:
handle
in 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:
containsAll
in interfaceCollection<String>
- Specified by:
containsAll
in 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)
-