H
- The handle used by the HandleDirectory
.REF
- The type of the objects to which the handles reference to.HandleLookup<H,REF>
public interface HandleDirectory<H,REF> extends HandleLookup<H,REF>
Modifier and Type | Method | Description |
---|---|---|
<T extends REF> |
handleReferences() |
Retrieves a list of all known objects for which there is a handle.
|
Set<H> |
handles() |
Retrieves a list of all known handles managed by the implementing
component.
|
hasHandle, lookupHandle, removeHandle
Set<H> handles()
<T extends REF> Collection<T> handleReferences()
T
- As of convenience, the type of the reference returned.
CAUTION: The type T
being a sub-type of
REF
has the drawback that in case you specify a
sub-type of REF
(T
), you may end up with
a class cast exception in case you do not make sure that the
handle references the expected type T
.Copyright © 2021. All rights reserved.