defaultablelistimpl.java
来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 29 行
JAVA
29 行
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;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?