@Override public int compareTo(Graph other) { if (other == null || other == this) return 0; // TODO: do this without serializing to string String string1 = this.toString(MIME_TYPE_GRAPH_STRING); String string2 = other.toString(MIME_TYPE_GRAPH_STRING); return string1.compareTo(string2); } }
@Override public boolean equals(Object object) { if (object == null || ! (object instanceof Graph)) return false; if (object == this) return true; Graph other = (Graph) object; // TODO: do this without serializing to string return this.toString(MIME_TYPE_GRAPH_STRING).equals(other.toString(MIME_TYPE_GRAPH_STRING)); }
if (log.isDebugEnabled()) log.debug("MessageEnvelope: " + messageEnvelope.getGraph().toString(null, null));
if (log.isDebugEnabled()) log.debug("MessageEnvelope: " + messageEnvelope.getGraph().toString(null, null));