@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; }
/** * Return a combined string for the ID. */ public String toString() { if (combinedID == null) { createCombinedID(); } return this.combinedID; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AtomicRequestID)) return false; final AtomicRequestID c = (AtomicRequestID) o; return (c.requestId.equals(this.requestId) && c.nodeId == this.nodeId && c.executionId == this.executionId); }
public void testGetters1() { String connID = "100"; //$NON-NLS-1$ long executionID = 200; RequestID r = new RequestID(connID, executionID); assertEquals("Lost connectionID", connID, r.getConnectionID()); //$NON-NLS-1$ assertEquals("Lost executionID", executionID, r.getExecutionID()); //$NON-NLS-1$ assertEquals("Wrong string representation", "100.200", r.toString()); //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public String toString() { return this.requestID.toString(); }
@Override public String toString() { return this.id.toString(); }
public void testGetters2() { long executionID = 200; RequestID r = new RequestID(executionID); assertEquals("Lost connectionID", null, r.getConnectionID()); //$NON-NLS-1$ assertEquals("Lost executionID", executionID, r.getExecutionID()); //$NON-NLS-1$ assertEquals("Wrong string representation", "C.200", r.toString()); //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public String getRequestId() { return this.globalState.requestId != null ? this.globalState.requestId.toString() : null; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; }
/** * Return a combined string for the ID. */ public String toString() { if (combinedID == null) { createCombinedID(); } return this.combinedID; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AtomicRequestID)) return false; final AtomicRequestID c = (AtomicRequestID) o; return (c.requestId.equals(this.requestId) && c.nodeId == this.nodeId && c.executionId == this.executionId); }
@Override public String toString() { return this.id.toString(); }
public void testSerialize1() throws Exception { RequestID copy = UnitTestUtil.helpSerialize(new RequestID("1", 100)); //$NON-NLS-1$ assertEquals("1", copy.getConnectionID()); //$NON-NLS-1$ assertEquals(100, copy.getExecutionID()); assertEquals("1.100", copy.toString()); //$NON-NLS-1$ }
@Override public String getRequestId() { return this.globalState.requestId != null ? this.globalState.requestId.toString() : null; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; }
/** * Return a combined string for the ID. */ public String toString() { if (combinedID == null) { createCombinedID(); } return this.combinedID; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AtomicRequestID)) return false; final AtomicRequestID c = (AtomicRequestID) o; return (c.requestId.equals(this.requestId) && c.nodeId == this.nodeId && c.executionId == this.executionId); }
@Override public String toString() { return this.id.toString(); }
public void testSerialize2() throws Exception { RequestID copy = UnitTestUtil.helpSerialize(new RequestID(100)); assertEquals(null, copy.getConnectionID()); assertEquals(100, copy.getExecutionID()); assertEquals("C.100", copy.toString()); //$NON-NLS-1$ }
@Override public String toString() { return this.requestID.toString(); }