public class VolumeResource extends Resource<Integer>
| Constructor and Description |
|---|
VolumeResource(Identification provider)
creates a new Resource.
|
VolumeResource(Identification provider,
Identification consumer)
creates a new Resource.
|
VolumeResource(Identification provider,
Volume volume)
creates a new Resource.
|
VolumeResource(Identification provider,
Volume volume,
Identification consumer)
creates a new Resource.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<Volume> |
getVolume(EventModel eventModel)
gets the first Volume if found in the EventModel
|
getConsumer, getID, getProvider, getResource, getResourceID, hasProvider, setConsumer, setProvider, setResource, toList, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOwnerpublic static final String ID
public VolumeResource(Identification provider)
provider - the Provider of the Resourcepublic VolumeResource(Identification provider, Volume volume)
provider - the Provider of the Resourcevolume - the resourcepublic VolumeResource(Identification provider, Identification consumer)
provider - the Provider of the Resourceconsumer - the ID of the Consumerpublic VolumeResource(Identification provider, Volume volume, Identification consumer)
provider - the Provider of the Resourcevolume - the resourceconsumer - the ID of the Consumerpublic static Optional<Volume> getVolume(EventModel eventModel)
eventModel - the EventModelCopyright © 2016. All rights reserved.