@Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;

      Interface that = (Interface) o;

      return !(endpoint != null ? !endpoint.equals(that.endpoint) : that.endpoint != null) &&
             !(type != null     ? !type.equals(that.type)         : that.type != null) &&
             !(version != null  ? !version.equals(that.version)   : that.version != null);

    }
Get the version.

@return the version
ambari-server/src/main/java/org/apache/ambari/server/controller/ivory/Cluster.java