|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pluto.driver.core.PortletWindowIDImpl
public class PortletWindowIDImpl
Wraps around the internal Object IDs. By holding both the string and the integer version of an Object ID this class helps speed up the internal processing.
Method Summary | |
---|---|
static PortletWindowIDImpl |
createFromString(String stringId)
Creates a portlet window ID instance from a string. |
String |
getStringId()
Returns the unique string ID of the portlet window. |
int |
hashCode()
public boolean equals(Object object) { boolean result = false; if (object instanceof PortletWindowIDImpl) { result = (intId == ((PortletWindowIDImpl) object).intId); } else if (object instanceof String) { result = stringId.equals(object); } else if (object instanceof Integer) { result = (intId == ((Integer) object).intValue()); } return (result); } |
int |
intValue()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getStringId()
PortletWindowID
Depending on the implementation of toString()
is dangerous,
because the original implementation in Object
is not
qualified.
getStringId
in interface PortletWindowID
public int hashCode()
hashCode
in class Object
public int intValue()
public static PortletWindowIDImpl createFromString(String stringId)
stringId
- the string ID from which the instance is created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |