Package org.isda.cdm
Class PortfolioState
- java.lang.Object
-
- com.rosetta.model.lib.RosettaModelObject
-
- org.isda.cdm.PortfolioState
-
- All Implemented Interfaces:
com.rosetta.model.lib.GlobalKey
@RosettaClass public class PortfolioState extends com.rosetta.model.lib.RosettaModelObject implements com.rosetta.model.lib.GlobalKey
State-full representation of a Portfolio that describes all the positions held at a given time, in various states which can be either traded, settled, etc., with lineage information to the previous state- Version:
- 2.5.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PortfolioState.PortfolioStateBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortfolioState.PortfolioStateBuilder
builder()
boolean
equals(java.lang.Object o)
Lineage
getLineage()
Pointer to the previous PortfolioState and new Event(s) leading to the current (new) state.MetaFields
getMeta()
java.util.List<Position>
getPositions()
The list of positions, each containing a Quantity and a Product.int
hashCode()
com.rosetta.model.lib.meta.RosettaMetaData<? extends PortfolioState>
metaData()
void
process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
PortfolioState.PortfolioStateBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
getLineage
public final Lineage getLineage()
Pointer to the previous PortfolioState and new Event(s) leading to the current (new) state. Previous PortfolioState in the Lineage can be Null in case this is the start of the chain of Events.
-
getMeta
public final MetaFields getMeta()
- Specified by:
getMeta
in interfacecom.rosetta.model.lib.GlobalKey
-
getPositions
public final java.util.List<Position> getPositions()
The list of positions, each containing a Quantity and a Product.
-
metaData
public com.rosetta.model.lib.meta.RosettaMetaData<? extends PortfolioState> metaData()
- Specified by:
metaData
in classcom.rosetta.model.lib.RosettaModelObject
-
toBuilder
public PortfolioState.PortfolioStateBuilder toBuilder()
- Specified by:
toBuilder
in classcom.rosetta.model.lib.RosettaModelObject
-
builder
public static PortfolioState.PortfolioStateBuilder builder()
-
process
public void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
- Specified by:
process
in classcom.rosetta.model.lib.RosettaModelObject
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-