INNER CODE UNIT · Java

equals

bujiio/buji-pac4j · src/main/java/io/buji/pac4j/subject/Pac4jPrincipal.java:89

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

        final Pac4jPrincipal that = (Pac4jPrincipal) o;
        return profiles != null ? profiles.equals(that.profiles) : that.profiles == null;
    }

    @Override
    public int hashCode() {
        return profiles != null ? profiles.hashCode() : 0;
    }

    @Override
    public String toString() {
        return getName();
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…