Class ConnectionCache.ConnectionName

java.lang.Object
com.atlan.cache.ConnectionCache.ConnectionName
All Implemented Interfaces:
ObjectName
Enclosing class:
ConnectionCache

public static final class ConnectionCache.ConnectionName extends Object implements ObjectName
Unique identity for a connection, in the form: {{type}}/{{name}} For example: snowflake/development
  • Constructor Details

    • ConnectionName

      public ConnectionName(Connection connection)
    • ConnectionName

      public ConnectionName(String identity)
  • Method Details

    • toString

      public String toString()
      String representation of the object's unique name.
      Specified by:
      toString in interface ObjectName
      Overrides:
      toString in class Object
      Returns:
      object's unique name
    • getName

      public String getName()
    • getType

      public AtlanConnectorType getType()
    • equals

      public boolean equals(Object o)
      Description copied from interface: ObjectName
      Check whether two object names are equivalent (or not).
      Specified by:
      equals in interface ObjectName
      Overrides:
      equals in class Object
      Parameters:
      o - object name to compare against
      Returns:
      true if the two names are equivalent
    • hashCode

      public int hashCode()
      Description copied from interface: ObjectName
      Calculate a unique hash code given the object name's unique characteristics.
      Specified by:
      hashCode in interface ObjectName
      Overrides:
      hashCode in class Object
      Returns:
      unique hash code for the object name