Package cdm.event.common
Class State.StateBuilderImpl
java.lang.Object
cdm.event.common.State.StateBuilderImpl
- All Implemented Interfaces:
State,State.StateBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
State
Builder Implementation of State
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.event.common.State
State.StateBuilder, State.StateBuilderImpl, State.StateImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClosedState.ClosedStateBuilderprotected PositionStatusEnum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanRepresents the qualification of what led to the trade's closure alongside the dates on which this closure took effect.Identifies the state of the position, to distinguish if just executed, formed, already settled, closed, etc.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setClosedState(ClosedState _closedState) setPositionState(PositionStatusEnum _positionState) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosettaMethods inherited from interface cdm.event.common.State.StateBuilder
process
-
Field Details
-
closedState
-
positionState
-
-
Constructor Details
-
StateBuilderImpl
public StateBuilderImpl()
-
-
Method Details
-
getClosedState
@RosettaAttribute("closedState") @RuneAttribute("closedState") public ClosedState.ClosedStateBuilder getClosedState()Description copied from interface:StateRepresents the qualification of what led to the trade's closure alongside the dates on which this closure took effect.- Specified by:
getClosedStatein interfaceState- Specified by:
getClosedStatein interfaceState.StateBuilder
-
getOrCreateClosedState
- Specified by:
getOrCreateClosedStatein interfaceState.StateBuilder
-
getPositionState
@RosettaAttribute("positionState") @RuneAttribute("positionState") public PositionStatusEnum getPositionState()Description copied from interface:StateIdentifies the state of the position, to distinguish if just executed, formed, already settled, closed, etc.- Specified by:
getPositionStatein interfaceState
-
setClosedState
@RosettaAttribute("closedState") @RuneAttribute("closedState") public State.StateBuilder setClosedState(ClosedState _closedState) - Specified by:
setClosedStatein interfaceState.StateBuilder
-
setPositionState
@RosettaAttribute("positionState") @RuneAttribute("positionState") public State.StateBuilder setPositionState(PositionStatusEnum _positionState) - Specified by:
setPositionStatein interfaceState.StateBuilder
-
build
Description copied from interface:StateBuild Methods -
toBuilder
-
prune
- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Specified by:
prunein interfaceState.StateBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public State.StateBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-