new Data(first) → {Data}
This class defines a generic data object to use for messaging. It includes recycle methods to encourage reuse.
Parameters:
Name | Type | Description |
---|---|---|
first |
String
|
Object
|
Can be an object of key/value pairs or the parameters can be an alternating list of keys and values. |
Returns:
- Type:
-
Data
Returns the new Data object.
Methods
(static) recycle(The)
Returns Data back to the cache. Prefer the Data's recycle method since it recycles property objects as well.
Parameters:
Name | Type | Description |
---|---|---|
The |
platypus.Data
|
Data to be recycled. |
(static) setUp() → {platypus.Data}
Returns Data from cache or creates a new one if none are available.