Class PresentKit
java.lang.Object
com.iohao.net.common.kit.PresentKit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIf a value is null, performs the given action with the value, otherwise does nothing.<T> voidIf a value is present, performs the given action with the value, otherwise does nothing.
-
Constructor Details
-
PresentKit
public PresentKit()
-
-
Method Details
-
ifNull
-
ifPresent
If a value is present, performs the given action with the value, otherwise does nothing.- Parameters:
value- valueaction- the action to be performed, if a value is present- Since:
- 21.8
-