hierynomus / sshj

ssh, scp and sftp for java
Apache License 2.0
2.49k stars 600 forks source link

Parameter cannot be used as HashMap key (missing #hashCode, #equals, #toString) #653

Closed ghostcity closed 3 years ago

ghostcity commented 3 years ago

I'd like to use the local port forwarding's parameter type as a HashMap's key. Since the type (currently) does not contain the "Java boilerplate" #hashCode #equals, and #toString, it cannot be used as an according key.

The solution is quite simple -- I will offer such methods as a merge request.

hierynomus commented 3 years ago

Merged #653