T
- generic type parameter for Builder subtypes.public abstract static class Event.Builder<T extends Event.Builder>
extends java.lang.Object
Constructor and Description |
---|
Builder(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
abstract Event |
build()
Constructs a new Event.
|
java.lang.String |
getEventName()
Gets the event name.
|
boolean |
getIsCompleted()
Gets the completion status.
|
java.lang.Long |
getStartTime()
Gets the startTime.
|
T |
setElapsedTime(long elapsedTime)
Sets the elapsedTime of this Builder.
|
T |
setIsCompleted(boolean isCompleted)
Sets the isCompleted flag of this Builder.
|
T |
setStartTime(long startTime)
Sets the startTime of this Builder.
|
T |
setStopTime(long stopTime)
Sets the stopTime of this Builder.
|
public final java.lang.String getEventName()
public final java.lang.Long getStartTime()
public final boolean getIsCompleted()
public final T setStartTime(long startTime)
startTime
- the startTime to set.public final T setStopTime(long stopTime)
stopTime
- the stopTime to set.public final T setElapsedTime(long elapsedTime)
elapsedTime
- the elapsedTime to set.public final T setIsCompleted(boolean isCompleted)
isCompleted
- the isCompleted status to set.public abstract Event build()