- All Implemented Interfaces:
Node
public class EmptyNode
extends Object
implements Node
空节点
- 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
-
-
Constructor Details
-
EmptyNode
public EmptyNode()
-
Method Details
-
getValue
Description copied from interface: Node
获取Bean对应节点的值
- Specified by:
getValue in interface Node
- Parameters:
bean - bean对象
- Returns:
- 节点值
-
setValue
Description copied from interface: Node
设置节点值
- Specified by:
setValue in interface Node
- Parameters:
bean - bean对象
value - 节点值
- Returns:
- bean对象。如果在原Bean对象基础上设置值,返回原Bean,否则返回新的Bean