src/main/java/com/dharmab/sheets/server/character/Character.java
/**
     * "Cap" a value to be no greater than a given maximum
     *
     * @param value   The value to cap
     * @param maximum The maximum value
     * @return If maximum is not null and lower than the given value, return the maximum value. Otherwise, return the
     * given value.
     */
"Cap" a value to be no greater than a given maximum
@param value   The value to cap
@param maximum The maximum value
@return If maximum is not null and lower than the given value, return the maximum value. Otherwise, return the
given value.
" Cap " a value to be no greater than a given maximum @param value The value to cap @param maximum The maximum value @return If maximum is not null and lower than the given value return the maximum value . Otherwise return the given value .
private Integer capValue(Integer value, Integer maximum) {
        if (maximum == null) {
            return value;
        }
        return value > maximum ? maximum : value;
    }
private Integer capValue ( Integer value , Integer maximum ) { if ( maximum == null ) { return value ; } return value > maximum ? maximum : value ; }
"Cap" a value to be no greater than a given maximum
 @param value   The value to cap
 @param maximum The maximum value
 @return If maximum is not null and lower than the given value, return the maximum value.
" Cap " a value to be no greater than a given maximum @param value The value to cap @param maximum The maximum value @return If maximum is not null and lower than the given value return the maximum value .
// Check for null values, which may occur during client-side GWT operations (RPC, editor, etc.)