Class CcpId

    • 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.
        Specified by:
        getName in interface Named
        Returns:
        the code identifying the CCP
      • 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