You can’t. arrays use the default identity-based Object.hashCode() implementation and there’s no way you can override that. Don’t use Arrays as keys in a HashMap / HashSet!
Use a Set of Lists instead.
You can’t. arrays use the default identity-based Object.hashCode() implementation and there’s no way you can override that. Don’t use Arrays as keys in a HashMap / HashSet!
Use a Set of Lists instead.