Java学习
94me
Scripture says:Wide is the gate and broad is the way that leads to destruction,
and many enter through it.
展开
-
AtomicBoolean意义何在
AtomicBoolean意义何在提供了一种在多线程中安全处理业务逻辑的方案private var started = AtomicBoolean(false)if (started.compareAndSet(false, true)) { call.enqueue(object : Callback<R> { ...原创 2018-07-19 11:46:40 · 4352 阅读 · 0 评论 -
ParameterizedType详解
ParameterizedType详解参数化类型public interface ParameterizedType extends Type { Type[] getActualTypeArguments(); Type getRawType(); Type getOwnerType();} 何为参数化类型列举一个实体类用代码来解释什么...原创 2018-07-19 15:24:02 · 29748 阅读 · 11 评论