public class Optionalish extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getEmpty()
Returns a string representing the method call to obtain the empty version of this Optional.
|
String |
getRawType()
Returns a string representing the raw type of this Optional.
|
public String getRawType()
"Optional", but it might be "OptionalInt" or "java.util.Optional" for example.public String getEmpty()
"Optional.empty()" or possibly "java.util.Optional.empty()". It does not have a final semicolon.
This method is public so that it can be referenced as p.optional.empty from
templates.
Copyright © 2022 Google LLC. All rights reserved.