@Override
    public boolean equals(Object obj) {

        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        FileRights other = (FileRights) obj;
        if (!Arrays.equals(groupRights, other.groupRights)) {
            return false;
        }
        if (!Arrays.equals(othersRights, other.othersRights)) {
            return false;
        }
        if (!Arrays.equals(ownerRights, other.ownerRights)) {
            return false;
        }
        return true;
    }