public boolean isUpgrade() {
    return this == UPGRADE;
  }
@return {@code true} if the direction is for upgrade.  Convenience instead
of equality checking.
ambari-server/src/main/java/org/apache/ambari/server/stack/upgrade/Direction.java