public class SelectorResource extends Resource<Identification>
Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_ID |
Constructor and Description |
---|
SelectorResource(Identification consumer)
creates a new Resource.
|
SelectorResource(Identification consumer,
Identification identification)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Boolean> |
isTarget(EventModel eventModel,
Identifiable identifiable)
returns true if the identifiable is the target of the EventModel
|
static Optional<Boolean> |
isTarget(EventModel eventModel,
Identification identification)
returns true if the identifiable is the target of the EventModel
|
getConsumer, getID, getProvider, getResource, getResourceID, hasProvider, setConsumer, setProvider, setResource, toList, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOwner
public static final String RESOURCE_ID
public SelectorResource(Identification consumer)
consumer
- the Provider of the Resourcepublic SelectorResource(Identification consumer, Identification identification)
consumer
- the consumer of the Resourceidentification
- the resourcepublic static Optional<Boolean> isTarget(EventModel eventModel, Identifiable identifiable)
eventModel
- the EventModel to checkidentifiable
- the identifiable to check againstpublic static Optional<Boolean> isTarget(EventModel eventModel, Identification identification)
eventModel
- the EventModel to checkidentification
- the identification to check againstCopyright © 2016. All rights reserved.