net.artima.place
Class LinkItem

java.lang.Object
  |
  +--net.artima.place.LinkItem
All Implemented Interfaces:
java.io.Serializable

public class LinkItem
extends java.lang.Object
implements java.io.Serializable

Associates a Link to a ResourceInfo. Keeping the ResourceInfo outside of the Link, enables modifiable places to more easily change the ResourceInfo data for a particular Link.

See Also:
Serialized Form

Constructor Summary
LinkItem(Link link, ResourceInfo resourceInfo)
          Constructs a LinkItem with passed Link and ResourceInfo.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified Object with this LinkItem for equality.
 Link getLink()
          Returns the Link object that's stored in this LinkItem.
 ResourceInfo getResourceInfo()
          Returns the ResourceInfo object that's stored in this LinkItem.
 int hashCode()
          Returns the hash code value for this LinkItem.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkItem

public LinkItem(Link link,
                ResourceInfo resourceInfo)
Constructs a LinkItem with passed Link and ResourceInfo.
Method Detail

getLink

public Link getLink()
Returns the Link object that's stored in this LinkItem.

getResourceInfo

public ResourceInfo getResourceInfo()
Returns the ResourceInfo object that's stored in this LinkItem. The ResourceInfo provides information, suitable for display to users, about the linked-to resource.

equals

public boolean equals(java.lang.Object o)
Compares the specified Object with this LinkItem for equality.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns the hash code value for this LinkItem.
Overrides:
hashCode in class java.lang.Object