package jdepend.service.profile.scope;
public class GroupProfileScope extends AbstractProfileScope {
private static final long serialVersionUID = 1442085783868320831L;
private String group;
public String getGroup() {
return group;
}
public void setGroup(String group) {
this.group = group;
}
@Override
public boolean isSelf(String group, String command) {
return this.group.equals(group);
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((group == null) ? 0 : group.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
GroupProfileScope other = (GroupProfileScope) obj;
if (group == null) {
if (other.group != null)
return false;
} else if (!group.equals(other.group))
return false;
return true;
}
}