- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.tools.Pointer<T>
-
-
构造器详细资料
-
Pointer
public Pointer()
-
Pointer
public Pointer(T value)
-
-
方法详细资料
-
value
@Contract(pure=true) public T value()
-
value
@Contract("null -> null; !null -> !null") public T value(T val)
If you want to get the old value. please use#replace(T)
- 参数:
val
- The value you want to set- 返回:
- The input value
-
replace
public T replace(T val)
Set up the value and return the old value.- 参数:
val
- The value you want to set- 返回:
- The value before set
- 从以下版本开始:
- 2.2
-
exists
@Contract(pure=true) public boolean exists()
Check the current value not `null`- 返回:
- value != null
- 从以下版本开始:
- 2.2
-
-