@Override
  public boolean equals(Object other) {
    if (other != null && (other instanceof RoleCommandPair)
      && ((RoleCommandPair) other).role.equals(role)
      && ((RoleCommandPair) other).cmd.equals(cmd)) {
      return true;
    }
    return false;
  }
Tuple object containing a Role and RoleCommand.
ambari-server/src/main/java/org/apache/ambari/server/metadata/RoleCommandPair.java