class StreamConnection implements Closeable {

  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null || getClass() != obj.getClass()) {
      return false;
    }

    StreamConnection that = (StreamConnection) obj;

    return streamConnectionId.equals(that.streamConnectionId);
  }

  public  StreamConnection(final InterledgerAddress receiverAddress, final SharedSecret sharedSecret);
  public  StreamConnection(final StreamConnectionId streamConnectionId);

}