org.xwiki.instance
Class InstanceId
java.lang.Object
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 $
InstanceId
public InstanceId()
- Default constructor. It is need for Hibernate.
InstanceId
public InstanceId(String id)
- Parameters:
id - the unique id of this instance
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.