Decorator模式
其中线程安全部分也是,只是创建过程夹杂了其他的模式
Collections.checkedList(l, Integer.class).add("hello");
其中线程安全部分也是,只是创建过程夹杂了其他的模式
Collections.checkedList(l, Integer.class).add("hello");