/*
   * (non-Javadoc)
   *
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {
    if (obj instanceof String) {
      return obj.equals(this.function);
    }

    if (obj instanceof GrantedFunction) {
      GrantedFunction attr = (GrantedFunction) obj;

      return this.function.equals(attr.getFunction());
    }

    return false;
  }
 public int compareTo(GrantedFunction function) {
   return function.getFunction().compareTo(this.function);
 }