public class OptionalType extends CollectionType
DEFAULT_TYPE_PARAMETER| Constructor | Description |
|---|---|
OptionalType() |
|
OptionalType(java.lang.reflect.Type baseJavaType) |
for TypeFactory.spawnFromPrototype()
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canBePrototype() |
|
java.lang.Object |
empty() |
|
java.lang.Class |
getBaseJavaClass() |
|
protected java.lang.reflect.Type |
getRawDehydratedType() |
Type for JSON representation.
|
boolean |
isEmpty(java.lang.Object optional) |
|
boolean |
isInstance(java.lang.Object cdo) |
|
java.lang.Object |
map(java.lang.Object sourceOptional_,
EnumerableFunction mapFunction,
OwnerContext owner) |
OwnerContext aware version of
EnumerableType.map(Object, EnumerableFunction, OwnerContext) |
map, mapToList, mapToSetgetItemClass, getItemTypeequals, equals, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, prettyPrint, prettyPrintBuilder, toStringpublic OptionalType(java.lang.reflect.Type baseJavaType)
public OptionalType()
public java.lang.Object map(java.lang.Object sourceOptional_,
EnumerableFunction mapFunction,
OwnerContext owner)
EnumerableTypeEnumerableType.map(Object, EnumerableFunction, OwnerContext)map in class CollectionTypepublic boolean isEmpty(java.lang.Object optional)
isEmpty in class CollectionTypepublic java.lang.Object empty()
empty in class CollectionTypepublic boolean canBePrototype()
canBePrototype in class JaversTypepublic boolean isInstance(java.lang.Object cdo)
isInstance in class JaversTypeprotected java.lang.reflect.Type getRawDehydratedType()
public java.lang.Class getBaseJavaClass()