私有构造器不可实例化类模板

public class UtilityClass {
	// Suppress default constructor for noninstantiability
	private UtilityClass() {
		throw new AssertionError();
	}
}

 

posted on 2017-09-07 17:19  力奋  阅读(243)  评论(0)    收藏  举报