@Override
  public boolean equals(Object other) {
    if (this == other) {
      return true;
    }
    if (!(other instanceof KV)) {
      return false;
    }
    KV<?, ?> otherKv = (KV<?, ?>) other;
    // deepEquals is used here for arrays. This impl comes from Beam.
    return Objects.deepEquals(this.key, otherKv.key)
        && Objects.deepEquals(this.value, otherKv.value);
  }
A key and value pair.

@param <K> type of the key
@param <V> type of the value
samza-api/src/main/java/org/apache/samza/operators/KV.java