Serializablepublic class Asset extends Object implements Serializable
| Constructor | Description |
|---|---|
Asset() |
Instantiates a new asset.
|
Asset(Object data,
Class dataClass) |
Instantiates a new asset.
|
Asset(String id) |
Instantiates a new asset by reference.
|
| Modifier and Type | Method | Description |
|---|---|---|
Object |
getData() |
Gets the data.
|
Class |
getDataClass() |
return the type of the Asset data class
|
String |
getId() |
Gets the id.
|
public Asset()
public Asset(Object data, Class dataClass)
data - the datadataClass - due to type erasure the data class needs to be provided for serialization/deserializationpublic Asset(String id)
id - ID of the asset.Copyright © 2018. All rights reserved.