Class LegalEntityInformation
- java.lang.Object
-
- com.opengamma.strata.market.observable.LegalEntityInformation
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class LegalEntityInformation extends Object implements org.joda.beans.ImmutableBean, Serializable
Legal entity information.This stores the information on a legal entity.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegalEntityInformation.Meta
The meta-bean forLegalEntityInformation
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
StandardId
getLegalEntityId()
Gets the legal entity identifier.int
hashCode()
boolean
isDefaulted()
Gets whether the legal entity has defaulted or not.static LegalEntityInformation
isDefaulted(StandardId legalEntityId)
Creates an instance for a legal entity which has defaulted.static LegalEntityInformation
isNotDefaulted(StandardId legalEntityId)
Creates an instance for a legal entity which has not defaulted.static LegalEntityInformation.Meta
meta()
The meta-bean forLegalEntityInformation
.LegalEntityInformation.Meta
metaBean()
String
toString()
-
-
-
Method Detail
-
isDefaulted
public static LegalEntityInformation isDefaulted(StandardId legalEntityId)
Creates an instance for a legal entity which has defaulted.- Parameters:
legalEntityId
- the legal entity ID- Returns:
- the instance
-
isNotDefaulted
public static LegalEntityInformation isNotDefaulted(StandardId legalEntityId)
Creates an instance for a legal entity which has not defaulted.- Parameters:
legalEntityId
- the legal entity- Returns:
- the instance
-
meta
public static LegalEntityInformation.Meta meta()
The meta-bean forLegalEntityInformation
.- Returns:
- the meta-bean, not null
-
metaBean
public LegalEntityInformation.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getLegalEntityId
public StandardId getLegalEntityId()
Gets the legal entity identifier.- Returns:
- the value of the property, not null
-
isDefaulted
public boolean isDefaulted()
Gets whether the legal entity has defaulted or not.True if defaulted, false otherwise.
- Returns:
- the value of the property, not null
-
-