Skip navigation links
com.openmarket.xcelerate.asset
Class AssetIdImpl
java.lang.Object
com.openmarket.xcelerate.asset.AssetIdImpl
- All Implemented Interfaces:
- AssetId, java.io.Serializable, java.lang.Comparable<AssetId>
-
public class AssetIdImpl
- extends java.lang.Object
- implements AssetId, java.lang.Comparable<AssetId>, java.io.Serializable
This class identifies an instance of the asset uniquely in the system. This is combination of asset type and asset id.
- See Also:
- Serialized Form
Constructor Summary |
AssetIdImpl(java.lang.String assetType, long assetId)
Constructs a new instance with asset type name and id. |
Method Summary |
long |
getId()
Returns asset id |
java.lang.String |
getType()
Returns asset type |
java.lang.String |
toString()
String representation of AssetId. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
AssetIdImpl
public AssetIdImpl(java.lang.String assetType,
long assetId)
- Constructs a new instance with asset type name and id.
- Parameters:
assetType
- Name of the asset type
assetId
- ID associated with the instance of the asset.
getId
public long getId()
- Returns asset id
-
- Specified by:
getId
in interface AssetId
-
- Returns:
- asset id
getType
public java.lang.String getType()
- Returns asset type
-
- Specified by:
getType
in interface AssetId
-
- Returns:
- asset type
toString
public java.lang.String toString()
- String representation of AssetId. The structure of String returned is <assettype>:<assetid> Please note that the format is for debugging purposes only.
-
- Overrides:
toString
in class java.lang.Object
-
- Returns:
- String representation of the AssetId.
Skip navigation links
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.