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 boolean
equals(Object obj)
Country
getCountry()
Gets the country that the legal entity is based in.LegalEntityId
getLegalEntityId()
Gets the legal entity identifier.String
getName()
Gets the legal entity name.int
hashCode()
static org.joda.beans.MetaBean
meta()
The meta-bean forSimpleLegalEntity
.org.joda.beans.MetaBean
metaBean()
static SimpleLegalEntity
of(LegalEntityId legalEntityId, String name, Country country)
Obtains an instance.String
toString()
-
-
-
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:
metaBean
in interfaceorg.joda.beans.Bean
-
getLegalEntityId
public LegalEntityId getLegalEntityId()
Gets the legal entity identifier.- Specified by:
getLegalEntityId
in interfaceLegalEntity
- Returns:
- the value of the property, not null
-
getName
public String getName()
Gets the legal entity name.- Specified by:
getName
in 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:
getCountry
in interfaceLegalEntity
- Returns:
- the value of the property, not null
-
-