Extras<T extends Object> class
final
App- or plugin-defined objects attached to a form, at most one per type.
Port of org.javarosa.core.util.Extras (JavaRosa keys them by class
name; here by runtime type). Plugins use it to mark parsed forms, e.g.
ODK Collect's DynamicPreloadExtra.
Constructors
- Extras()
- Creates an empty set of extras.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
get<
U extends T> () → U? -
The extra of type
U, if any. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
T extra) → void -
Stores
extra, replacing any extra of the same runtime type. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited