Пример #1
0
    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);
    }
Пример #2
0
 public Pair(ClOrdID clOrdID, SessionID sessionID) {
   this.clOrdID = clOrdID;
   this.sessionID = sessionID;
   hashCode = ("C:" + clOrdID.toString() + "S:" + sessionID.toString()).hashCode();
 }