src/main/java/org/thegalactic/context/constraint/categorical/CategoricalModel.java
public int indexOf(final CategoricalValue value) {
        if (this.equals(value.getModel())) {
            return value.index();
        } else {
            throw new IllegalArgumentException("The CategoricalValue is not in this model");
        }
    }
/**
     * Get the index of the CategoricalValue.
     *
     * @param value CategoricalValue
     *
     * @return the index
     */
Get the index of the CategoricalValue.

@return the index
Get the index of the CategoricalValue . @return the index
public int indexOf(final CategoricalValue value) {
        if (this.equals(value.getModel())) {
            return value.index();
        } else {
            throw new IllegalArgumentException("The CategoricalValue is not in this model");
        }
    }
public int indexOf ( final CategoricalValue value ) { if ( this . equals ( value . getModel ( ) ) ) { return value . index ( ) ; } else { throw new IllegalArgumentException ( "The CategoricalValue is not in this model" ) ; } }
Get the index of the CategoricalValue.
Get the index of the CategoricalValue .