java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.OptionalOps
Operations on
Optional.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Generate a call toOptional.get().isEmpty()Generate a call toOptional.get().Generate a call toOptional.get().Generate a call toOptional.get().
-
Constructor Details
-
OptionalOps
Construct a new instance.- Parameters:
bc- the block creator to wrap (must not benull)obj- the optional object (must not benull)
-
-
Method Details
-
get
Generate a call toOptional.get().- Returns:
- the expression of the result (not
null)
-
isPresent
Generate a call toOptional.get().- Returns:
- the expression of the result (not
null)
-
isEmpty
Generate a call toOptional.get().- Returns:
- the expression of the result (not
null)
-
orElse
Generate a call toOptional.get().- Parameters:
other- the expression to be returned, if no value is present- Returns:
- the expression of the result (not
null)
-