Class CcpId
- java.lang.Object
-
- com.opengamma.strata.product.common.CcpId
-
- All Implemented Interfaces:
Named,Serializable
public final class CcpId extends Object implements Named, Serializable
An identifier for a Central Counterparty Clearing House (CCP).Identifiers for common CCPs are provided in
CcpIds.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks if this identifier equals another identifier.StringgetName()Returns the code identifying the CCP.inthashCode()Returns a suitable hash code for the identifier.static CcpIdof(String name)Obtains an identifier for the CCP.StringtoString()
-
-
-
Method Detail
-
of
public static CcpId of(String name)
Obtains an identifier for the CCP.- Parameters:
name- the code identifying the CCP- Returns:
- an identifier for the CCP
-
getName
public String getName()
Returns the code identifying the CCP.
-
equals
public boolean equals(Object obj)
Checks if this identifier equals another identifier.The comparison checks the name.
-
hashCode
public int hashCode()
Returns a suitable hash code for the identifier.
-
-