Package com.opengamma.strata.product
Class SimpleLegalEntity
- java.lang.Object
-
- com.opengamma.strata.product.SimpleLegalEntity
-
- All Implemented Interfaces:
LegalEntity,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class SimpleLegalEntity extends Object implements LegalEntity, Serializable, org.joda.beans.ImmutableBean
A simple legal entity implementation.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CountrygetCountry()Gets the country that the legal entity is based in.LegalEntityIdgetLegalEntityId()Gets the legal entity identifier.StringgetName()Gets the legal entity name.inthashCode()static org.joda.beans.MetaBeanmeta()The meta-bean forSimpleLegalEntity.org.joda.beans.MetaBeanmetaBean()static SimpleLegalEntityof(LegalEntityId legalEntityId, String name, Country country)Obtains an instance.StringtoString()
-
-
-
Method Detail
-
meta
public static org.joda.beans.MetaBean meta()
The meta-bean forSimpleLegalEntity.- Returns:
- the meta-bean, not null
-
of
public static SimpleLegalEntity of(LegalEntityId legalEntityId, String name, Country country)
Obtains an instance.- Parameters:
legalEntityId- the value of the property, not nullname- the value of the property, not nullcountry- the value of the property, not null- Returns:
- the instance
-
metaBean
public org.joda.beans.MetaBean metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getLegalEntityId
public LegalEntityId getLegalEntityId()
Gets the legal entity identifier.- Specified by:
getLegalEntityIdin interfaceLegalEntity- Returns:
- the value of the property, not null
-
getName
public String getName()
Gets the legal entity name.- Specified by:
getNamein interfaceLegalEntity- Returns:
- the value of the property, not null
-
getCountry
public Country getCountry()
Gets the country that the legal entity is based in.- Specified by:
getCountryin interfaceLegalEntity- Returns:
- the value of the property, not null
-
-