| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final ImmutableSet | |
| private final javax. | |
| private static final ImmutableMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Optionalish | createIfOptional(javax.
the TypeMirror for the original optional type, for example typeOptional<String>.Returns an instance wrapping the given TypeMirror, or null if it is not any kind of Optional. |
| private javax. | |
| pack-priv javax. | |
| public String | getEmpty()
Returns a string representing the method call to obtain the empty version of this Optional. |
| public String | |
| pack-priv static boolean | |
| pack-priv String |
| className | back to summary |
|---|---|
| private final String className | |
| OPTIONAL_CLASS_NAMES | back to summary |
|---|---|
| private static final ImmutableSet<String> OPTIONAL_CLASS_NAMES | |
| optionalType | back to summary |
|---|---|
| private final javax. | |
| PRIMITIVE_TYPE_KINDS | back to summary |
|---|---|
| private static final ImmutableMap<String, javax. | |
| Optionalish | back to summary |
|---|---|
| private Optionalish(javax. | |
| createIfOptional | back to summary |
|---|---|
| pack-priv static Optionalish createIfOptional(javax. Returns an instance wrapping the given TypeMirror, or null if it is not any kind of Optional.
| |
| getContainedPrimitiveType | back to summary |
|---|---|
| private javax. | |
| getContainedType | back to summary |
|---|---|
| pack-priv javax. | |
| getEmpty | back to summary |
|---|---|
| public String getEmpty() Returns a string representing the method call to obtain the empty version of this Optional.
This will be something like This method is public so that it can be referenced as | |
| getRawType | back to summary |
|---|---|
| public String getRawType() Returns a string representing the raw type of this Optional. This will typically be just | |
| isOptional | back to summary |
|---|---|
| pack-priv static boolean isOptional(javax. | |
| ofNullable | back to summary |
|---|---|
| pack-priv String ofNullable() | |