-
Notifications
You must be signed in to change notification settings - Fork 29
Supported Types
Bradley Campbell edited this page Nov 27, 2016
·
14 revisions
Important: all information in this on this page is only relevant to PaperParcel 1.x. For information on the latest version of PaperParcel, visit http://grandstaish.github.io/paperparcel/
Data classes can contain members with any of the following types:
- All primitives and their wrapped counterparts
- Any
List
,Map
, orSet
of supported types (e.g.:val googleDirections: List<List<HashMap<String, String>>>
) -
CharSequence
andString
- Any class that implements
Parcelable
-
Bundle
andPersistableBundle
-
Size
andSizeF
-
SparseArray
of any supported types SparseBooleanArray
-
Array
of any supported types (including multi-dimensional arrays) - Any
Serializable
type - Any
Enum
type -
IBinder
types - Any class annotated with
@PaperParcel
- Anything else can be supported via the
TypeAdapter
interface (see Type Adapters)