Class ExchangeId
- java.lang.Object
-
- com.opengamma.strata.product.common.ExchangeId
-
- All Implemented Interfaces:
Named
,Serializable
public final class ExchangeId extends Object implements Named, Serializable
An identifier for an exchange based on the ISO Market Identifier Code (MIC).Identifiers for common exchanges are provided in
ExchangeIds
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Checks if this identifier equals another identifier.String
getName()
Returns the Market Identifier Code (MIC) identifying the exchange.int
hashCode()
Returns a suitable hash code for the identifier.static ExchangeId
of(String name)
Returns an identifier for the exchange.String
toString()
-
-
-
Method Detail
-
of
public static ExchangeId of(String name)
Returns an identifier for the exchange.- Parameters:
name
- the Market Identifier Code (MIC) identifying the exchange- Returns:
- an identifier for the exchange
-
getName
public String getName()
Returns the Market Identifier Code (MIC) identifying the exchange.
-
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.
-
-