Package eu.mihosoft.devcom.impl
Class StateChangedEventImpl.BuilderImpl
java.lang.Object
eu.mihosoft.devcom.impl.StateChangedEventImpl.BuilderImpl
- All Implemented Interfaces:
StateChangedEvent.Builder
,eu.mihosoft.vmf.runtime.core.Builder
- Enclosing class:
- StateChangedEventImpl
public static class StateChangedEventImpl.BuilderImpl
extends Object
implements StateChangedEvent.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappendCollections
(boolean value) build()
Builds a new 'StateChangedEvent
' instance.withException
(Exception exception) Sets the 'exception' property of this builder.withNewState
(Device.State newState) Sets the 'newState' property of this builder.withOldState
(Device.State oldState) Sets the 'oldState' property of this builder.withTimestamp
(long timestamp) Sets the 'timestamp' property of this builder.
-
Constructor Details
-
BuilderImpl
public BuilderImpl()
-
-
Method Details
-
withException
Description copied from interface:StateChangedEvent.Builder
Sets the 'exception' property of this builder.- Specified by:
withException
in interfaceStateChangedEvent.Builder
- Parameters:
exception
- value to set- Returns:
- this builder
- See Also:
-
eu.mihosoft.devcom.StateChangedEvent#setException(java.lang.Exception)
-
withNewState
Description copied from interface:StateChangedEvent.Builder
Sets the 'newState' property of this builder.- Specified by:
withNewState
in interfaceStateChangedEvent.Builder
- Parameters:
newState
- value to setNew state
- Returns:
- this builder
- See Also:
-
eu.mihosoft.devcom.StateChangedEvent#setNewState(eu.mihosoft.devcom.Device.State)
-
withOldState
Description copied from interface:StateChangedEvent.Builder
Sets the 'oldState' property of this builder.- Specified by:
withOldState
in interfaceStateChangedEvent.Builder
- Parameters:
oldState
- value to setOld state
- Returns:
- this builder
- See Also:
-
eu.mihosoft.devcom.StateChangedEvent#setOldState(eu.mihosoft.devcom.Device.State)
-
withTimestamp
Description copied from interface:StateChangedEvent.Builder
Sets the 'timestamp' property of this builder.- Specified by:
withTimestamp
in interfaceStateChangedEvent.Builder
- Parameters:
timestamp
- value to setTimestamp (milliseconds since January 1st, 1970).
- Returns:
- this builder
- See Also:
-
eu.mihosoft.devcom.StateChangedEvent#setTimestamp(long)
-
appendCollections
-
build
Description copied from interface:StateChangedEvent.Builder
Builds a new 'StateChangedEvent
' instance.- Specified by:
build
in interfaceeu.mihosoft.vmf.runtime.core.Builder
- Specified by:
build
in interfaceStateChangedEvent.Builder
- Returns:
- a new '
StateChangedEvent
' instance
-
applyFrom
-