com.servingxml.io.streamsource
Class SystemIdKey
java.lang.Object
com.servingxml.io.streamsource.SystemIdKey
- All Implemented Interfaces:
- Key
public final class SystemIdKey
- extends java.lang.Object
- implements Key
This class provides an implementation of a key used to uniquely identify XML documents.
|
Constructor Summary |
SystemIdKey(java.lang.String systemId)
|
|
Method Summary |
boolean |
equals(java.lang.Object anObject)
Compares this key to the specified object. |
int |
hashCode()
Returns a hash code value for this key. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SystemIdKey
public SystemIdKey(java.lang.String systemId)
equals
public boolean equals(java.lang.Object anObject)
- Compares this key to the specified object.
- Specified by:
equals in interface Key- Overrides:
equals in class java.lang.Object
- Parameters:
anObject - the object being tested for equality.
- Returns:
true if the two keys are equal, false otherwise.
hashCode
public int hashCode()
- Returns a hash code value for this key.
- Specified by:
hashCode in interface Key- Overrides:
hashCode in class java.lang.Object
- Returns:
- a hash code value for this key.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object