org.exist.collections
Class CollectionURI
java.lang.Object
org.exist.collections.CollectionURI
public class CollectionURI
- extends Object
URI to represent a Collection path internally in eXist
FRAGMENT_SEPARATOR
public static final char FRAGMENT_SEPARATOR
- See Also:
- Constant Field Values
CollectionURI
public CollectionURI(String path)
CollectionURI
public CollectionURI(CollectionURI other)
append
public void append(String segment)
removeLastSegment
public void removeLastSegment()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Copied from java.lang.String.hashCode();
Returns a hash code for this string. The hash code for a
String
object is computed as
s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
using int
arithmetic, where s[i]
is the
ith character of the string, n
is the length of
the string, and ^
indicates exponentiation.
(The hash value of the empty string is zero.)
- Overrides:
hashCode
in class Object
- Returns:
- a hash code value for this object.
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
Copyright (C) Wolfgang Meier. All rights reserved.