Example usage for org.apache.commons.math3.exception.util LocalizedFormats VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC

List of usage examples for org.apache.commons.math3.exception.util LocalizedFormats VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC

Introduction

In this page you can find the example usage for org.apache.commons.math3.exception.util LocalizedFormats VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC.

Prototype

LocalizedFormats VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC

To view the source code for org.apache.commons.math3.exception.util LocalizedFormats VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC.

Click Source Link

Usage

From source file:org.matheclipse.core.stat.descriptive.SymbolicGeometricMean.java

/**
 * Throws IllegalStateException if n > 0.
 *//*from  w w  w .j ava 2s  .  c om*/
private void checkEmpty() {
    if (getN() > 0) {
        throw new MathIllegalStateException(LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC, getN());
    }
}