private static DirectionResultPair hash(DirectionResultPair drp) {
    return new DirectionResultPair(drp.directionKey, hash(drp.result));
  }
private static DirectionResultPair hash(DirectionResultPair drp)