public class LastEncountered extends Resource<Long>
Constructor and Description |
---|
LastEncountered(Identification provider,
Long timePassed)
creates a new Resource.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Long> |
getTimePassed(EventModel eventModel)
returns the time passed if available
|
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 ID
public LastEncountered(Identification provider, Long timePassed)
provider
- the Provider of the ResourcetimePassed
- the time passed in secondspublic static Optional<Long> getTimePassed(EventModel eventModel)
eventModel
- the eventCopyright © 2016. All rights reserved.