Class ExchangeId

    • 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.
        Specified by:
        getName in interface Named
        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.

        Overrides:
        equals in class 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 Object
        Returns:
        the hash code