com.atlassian.gadgets
Class GadgetId

java.lang.Object
  extended by com.atlassian.gadgets.GadgetId
All Implemented Interfaces:
Serializable

@Immutable
public final class GadgetId
extends Object
implements Serializable

Representation of the identifier for a particular gadget.

See Also:
Serialized Form

Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 String value()
          Returns the value of the identifier as a String
static GadgetId valueOf(String id)
          Converts the String value to a GadgetId object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

value

public String value()
Returns the value of the identifier as a String

Returns:
the value of the identifier as a String

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

valueOf

public static GadgetId valueOf(String id)
Converts the String value to a GadgetId object.

Parameters:
id - String value to use
Returns:
GadgetId with the underlying value of id


Copyright © 2010 Atlassian. All Rights Reserved.