com.fatwire.gst.foundation.controller
Class AssetIdWithSite

java.lang.Object
  extended by com.fatwire.gst.foundation.controller.AssetIdWithSite
All Implemented Interfaces:
com.fatwire.assetapi.data.AssetId, Serializable, Comparable<AssetIdWithSite>

public class AssetIdWithSite
extends Object
implements com.fatwire.assetapi.data.AssetId, Comparable<AssetIdWithSite>, Serializable

AssetId with SiteName attached to it

Since:
Jun 17, 2010
Author:
Dolf Dijkstra
See Also:
Serialized Form

Constructor Summary
AssetIdWithSite(com.fatwire.assetapi.data.AssetId id, String site)
           
AssetIdWithSite(String type, long id, String site)
           
 
Method Summary
 int compareTo(AssetIdWithSite o)
           
 boolean equals(Object obj)
           
 com.fatwire.assetapi.data.AssetId getAssetId()
           
 long getId()
           
 String getSite()
           
 String getType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssetIdWithSite

public AssetIdWithSite(com.fatwire.assetapi.data.AssetId id,
                       String site)

AssetIdWithSite

public AssetIdWithSite(String type,
                       long id,
                       String site)
Method Detail

getId

public long getId()
Specified by:
getId in interface com.fatwire.assetapi.data.AssetId

getType

public String getType()
Specified by:
getType in interface com.fatwire.assetapi.data.AssetId

getAssetId

public com.fatwire.assetapi.data.AssetId getAssetId()

getSite

public String getSite()
Returns:
the site

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(AssetIdWithSite o)
Specified by:
compareTo in interface Comparable<AssetIdWithSite>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.