Package nz.org.riskscape.engine.types
Interface ContainingType
- All Superinterfaces:
Type
- All Known Implementing Classes:
CoverageType
,EmptyList
,MultiGeom
,Nullable
,RelationType
,RSList
An interface for Type
s that are containers for other types, e.g. a List type. While these can't necessarily
be operated on generically, they can be displayed and inspected generically.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T,
U> U visit
(TypeVisitor<T, U> tv, T data) Type specific visiting logic.Methods inherited from interface nz.org.riskscape.engine.types.Type
asStruct, checkForNull, coerce, estimateSize, find, findAllowNull, fromBytes, getUnwrappedType, internalType, isA, isNullable, isNumeric, isWrapped, toBytes, toString, unwrap
-
Method Details
-
getContainedType
Type getContainedType()- Returns:
- The type that this
ContainingType
contains.
-
visit
Description copied from interface:Type
Type specific visiting logic. Types must decide whether they are atomic or compound and call the relevant method on
TypeVisitor
. It's up to each compound type to decide how they want to structure their children, e.g. order, metadata, and what's considered a child or not.
-