Class ExchangeId

  • All Implemented Interfaces:
    Named, java.io.Serializable

    public final class ExchangeId
    extends java.lang.Object
    implements Named, java.io.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​(java.lang.Object obj)
      Checks if this identifier equals another identifier.
      java.lang.String getName()
      Returns the Market Identifier Code (MIC) identifying the exchange.
      int hashCode()
      Returns a suitable hash code for the identifier.
      static ExchangeId of​(java.lang.String name)
      Returns an identifier for an exchange.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the Market Identifier Code (MIC) identifying the exchange.
        Specified by:
        getName in interface Named
        Returns:
        the Market Identifier Code (MIC) identifying the exchange
      • of

        public static ExchangeId of​(java.lang.String name)
        Returns an identifier for an exchange.
        Parameters:
        name - the Market Identifier Code (MIC) identifying the exchange
        Returns:
        an identifier for an exchange
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if this identifier equals another identifier.

        The comparison checks the name.

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the other identifier, null returns false
        Returns:
        true if equal
      • hashCode

        public int hashCode()
        Returns a suitable hash code for the identifier.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object