/* (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((accessStatus == null) ? 0 : accessStatus.hashCode());
   result = prime * result + ((authority == null) ? 0 : authority.hashCode());
   result = prime * result + ((permission == null) ? 0 : permission.hashCode());
   result = prime * result + position;
   return result;
 }
 /* (non-Javadoc)
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final AccessPermissionImpl other = (AccessPermissionImpl) obj;
   if (accessStatus == null) {
     if (other.accessStatus != null) return false;
   } else if (!accessStatus.equals(other.accessStatus)) return false;
   if (authority == null) {
     if (other.authority != null) return false;
   } else if (!authority.equals(other.authority)) return false;
   if (permission == null) {
     if (other.permission != null) return false;
   } else if (!permission.equals(other.permission)) return false;
   if (position != other.position) return false;
   return true;
 }