All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pastdev.jsch.nio.file.StandardUserPrincipal Maven / Gradle / Ivy

package com.pastdev.jsch.nio.file;

import java.nio.file.attribute.UserPrincipal;

class StandardUserPrincipal implements UserPrincipal {
    private String name;

    StandardUserPrincipal( String name ) {
        this.name = name;
    }

    @Override
    public boolean equals( Object o ) {
        return name.equals( o );
    }

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

    @Override
    public int hashCode() {
        return name.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy