public boolean equals(Object object) { if (object == null) { return false; } if (object instanceof Pair == false) { return false; } Pair pair = (Pair) object; return clOrdID.equals(pair.clOrdID) && sessionID.equals(pair.sessionID); }
public Pair(ClOrdID clOrdID, SessionID sessionID) { this.clOrdID = clOrdID; this.sessionID = sessionID; hashCode = ("C:" + clOrdID.toString() + "S:" + sessionID.toString()).hashCode(); }