src/main/java/org/apache/bval/bench/Config.java
public boolean shouldAddNestedBean(int level) {
        if (level == 0) {
            return r.nextDouble() < new Double(p.getProperty("generator.level1.fillrate"));
        } else if (level == 1) {
            return r.nextDouble() < new Double(p.getProperty("generator.level2.fillrate"));
        } else if (level == 2) {
            return r.nextDouble() < new Double(p.getProperty("generator.level3.fillrate"));
        } else {
            return false;
        }
    }
/**
     * @param level
     *            The level of nesting.
     * @return <code>true</code> if it's determined that a nested bean should be
     *         added, <code>false</code> otherwise.
     */
@param level
The level of nesting.
@return true if it's determined that a nested bean should be
added, false otherwise.
@param level The level of nesting . @return true if it ' s determined that a nested bean should be added false otherwise .
public boolean shouldAddNestedBean(int level) {
        if (level == 0) {
            return r.nextDouble() < new Double(p.getProperty("generator.level1.fillrate"));
        } else if (level == 1) {
            return r.nextDouble() < new Double(p.getProperty("generator.level2.fillrate"));
        } else if (level == 2) {
            return r.nextDouble() < new Double(p.getProperty("generator.level3.fillrate"));
        } else {
            return false;
        }
    }
public boolean shouldAddNestedBean ( int level ) { if ( level == 0 ) { return r . nextDouble ( ) < new Double ( p . getProperty ( "generator.level1.fillrate" ) ) ; } else if ( level == 1 ) { return r . nextDouble ( ) < new Double ( p . getProperty ( "generator.level2.fillrate" ) ) ; } else if ( level == 2 ) { return r . nextDouble ( ) < new Double ( p . getProperty ( "generator.level3.fillrate" ) ) ; } else { return false ; } }
@param level
            The level of nesting.
@param level The level of nesting .