- Type Parameters:
T - 可变的类型
- All Implemented Interfaces:
Serializable, Mutable<T>
可变Object
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
MutableObject
public MutableObject()
构造,空值
-
MutableObject
public MutableObject(T value)
构造
- Parameters:
value - 值
-
Method Details
-
of
构建MutableObj
- Type Parameters:
T - 值类型
- Parameters:
value - 被包装的值
- Returns:
- MutableObject
-
get
Description copied from interface: Mutable
获得原始值
- Specified by:
get in interface Mutable<T>
- Returns:
- 原始值
-
set
Description copied from interface: Mutable
设置值
- Specified by:
set in interface Mutable<T>
- Parameters:
value - 值
-
-
-