| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2012-2015 ForgeRock AS. |
| | | * Portions copyright 2012-2016 ForgeRock AS. |
| | | */ |
| | | package com.forgerock.opendj.cli; |
| | | |
| | |
| | | this.priority = priority; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public int compareTo(final ArgumentGroup o) { |
| | | // Groups with higher priority numbers appear before |
| | |
| | | * @return boolean where true means this group contains members |
| | | */ |
| | | boolean containsArguments() { |
| | | return this.args.size() > 0; |
| | | return !args.isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | this.description = description; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public String toString() { |
| | | return getClass().getSimpleName() + "(description=" + description + ")"; |