org.xwiki.instance
Class InstanceId

java.lang.Object
  extended by org.xwiki.instance.InstanceId

@Unstable
public class InstanceId
extends Object

Represents an XWiki instance using a unique id. Note that we need this class so that Hibernate can persist and read the id.

Since:
5.2M2
Version:
$Id: 873c1607b85497d95531342cf96f40a33984c538 $

Constructor Summary
InstanceId()
          Default constructor.
InstanceId(String id)
           
 
Method Summary
 boolean equals(Object o)
           
 String getInstanceId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceId

public InstanceId()
Default constructor. It is need for Hibernate.


InstanceId

public InstanceId(String id)
Parameters:
id - the unique id of this instance
Method Detail

getInstanceId

public String getInstanceId()
Returns:
the unique id of this instance

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2004-2013 XWiki. All Rights Reserved.