FileDocCategorySizeDatePackage
DefaultableListImpl.javaAPI DocHibernate 3.2.5689Tue May 08 22:52:56 BST 2007org.hibernate.test.usercollection.parameterized

DefaultableListImpl.java

package org.hibernate.test.usercollection.parameterized;

import java.util.ArrayList;

/**
 * Implementation of our specialized collection contract
 *
 * @author Holger Brands
 * @author Steve Ebersole
 */
public class DefaultableListImpl extends ArrayList implements DefaultableList {
    private String defaultValue;

	public DefaultableListImpl() {
	}

	public DefaultableListImpl(int anticipatedSize) {
		super( anticipatedSize + ( int ) Math.ceil( anticipatedSize * .75f ) );
	}

	public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }
}