public class Optionalish
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEmpty()
Returns a string representing the method call to obtain the empty version of this Optional.
|
java.lang.String |
getRawType()
Returns a string representing the raw type of this Optional.
|
public java.lang.String getRawType()
"Optional", but it might be "OptionalInt" or "java.util.Optional" for example.public java.lang.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 © 2021 Google LLC. All Rights Reserved.