public class OptionalType extends CollectionType
DEFAULT_TYPE_PARAMETER| Constructor and Description |
|---|
OptionalType() |
OptionalType(java.lang.reflect.Type baseJavaType)
for TypeFactory.spawnFromPrototype()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty(java.lang.Object optional) |
java.lang.Object |
map(java.lang.Object sourceOptional_,
EnumerableFunction mapFunction,
OwnerContext owner)
Returns new instance of Enumerable with items from sourceEnumerable mapped by mapFunction.
|
getItemClass, getItemTypeequals, getBaseJavaClass, getBaseJavaType, getConcreteClassTypeArguments, getName, hashCode, isGenericType, isInstance, prettyPrint, prettyPrintBuilder, toStringpublic OptionalType(java.lang.reflect.Type baseJavaType)
public OptionalType()
public java.lang.Object map(java.lang.Object sourceOptional_,
EnumerableFunction mapFunction,
OwnerContext owner)
EnumerableTypemap in class CollectionTypepublic boolean isEmpty(java.lang.Object optional)
isEmpty in class CollectionType