static define()
Wrapper.define()
Wrapper.define()
Defines a new Wrapper
instance with the provided opening
, closing
chars, and optional text
.
Generic type variables
A generic type variable constrained by the string
, by default of the value captured from the provided opening
indicates the type of the opening in the Wrapper
via return type.
A generic type variable constrained by the string
, by default of the value captured from the provided closing
indicates the type of the closing in the Wrapper
via return type.
A generic type variable constrained by the string
, by default of the value captured from the provided text
indicates the type of the text in the Wrapper
via return type.
Parameters
The opening chars of generic type variable Opening
for new Wrapper
instance.
The closing chars of generic type variable Closing
for new Wrapper
instance.
An optional text of generic type variable Text
for new Wrapper
instance.
Return type
Wrapper<Opening, Text, Closing>
Wrapper<Opening, Text, Closing>
The return type is the Wrapper
object that takes generic type variables Opening
, Text
, and Closing
.
Returns
The return value is the Wrapper
instance of given opening
, closing
chars, and optional text
.
Example usage
Last updated