对对象进行封装,判断对象是否相等时只需要判断被封装的对象是否相等.
M8Test, [email protected], https://m8test.com
对 ObjectWrapper 调用给定的 block 函数,并返回 ObjectWrapper 本身。
获取原始的对象.
对 ObjectWrapper 调用给定的 block 函数,并返回 block 函数的结果包装在 ObjectWrapper 中。
如果 ObjectWrapper 满足给定的 predicate,则返回 ObjectWrapper 本身,否则返回 null 包装在 ObjectWrapper? 中。
如果 ObjectWrapper 不满足给定的 predicate,则返回 ObjectWrapper 本身,否则返回 null 包装在 ObjectWrapper? 中。