presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrincipal.java/HivePrincipal/equals
class HivePrincipal:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        HivePrincipal prestoPrincipal = (HivePrincipal) o;
        return type == prestoPrincipal.type &&
                Objects.equals(name, prestoPrincipal.name);
    }