📅  最后修改于: 2022-03-11 14:52:22.835000             🧑  作者: Mango
For HashSet, LinkedHashSet, and EnumSet the add(), remove() and contains() operations cost constant O(1) time. Thanks to the internal HashMap implementation.