[Collection Set] HashSet

 

It does not contain duplicate set of elements. More formally, the set not including a pair of elements e1, and e2such e1.equals(e2), and a maximum of empty elements.

Set the interface in addition to inherited from the Collection of all constructors interfaces contract and add, equals and hashCode methods outside the contract, but also increase the other provisions

Guess you like

Origin www.cnblogs.com/gaoyang666/p/11199779.html