- Type Parameters:
T - 被包装对象类型
- All Implemented Interfaces:
Wrapper<T>, Provider
- Direct Known Subclasses:
ListWrapper, SetWrapper
public class SimpleWrapper<T>
extends Object
implements Wrapper<T>
简单包装对象 通过继承此类,可以直接使用被包装的对象,用于简化和统一封装
- Since:
- Java 17+
- Author:
- Kimi Liu
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.miaixz.bus.core.lang.Wrapper
type
-
-
Constructor Details
-
SimpleWrapper
public SimpleWrapper(T raw)
构造
- Parameters:
raw - 原始对象
-
Method Details
-
getRaw
Description copied from interface: Wrapper
获取原始对象
- Specified by:
getRaw in interface Wrapper<T>
- Returns:
- 原始对象