public String stringValue() { return getID(); } }
/** * Reproducible hashcode for the object. * * @return Hashcode of the nodeid. */ public int hashCode() { return getID().hashCode(); }
/** * Compare node for equality. * * @param obj The object to compare against. * @return True if the object evaluates as an equivalent blank node. */ public boolean equals(Object obj) { if (obj == null) { return false; } else if (obj == this) { return true; } else if (obj instanceof BlankNodeImpl) { return this.nodeId != 0 && this.nodeId == ((BlankNodeImpl)obj).nodeId; } else if (obj instanceof BNode) { BNode otherNode = (BNode)obj; return this.getID().equals(otherNode.getID()); } else { return false; } }