package dev.openrs2.util.collect; public interface DisjointSet extends Iterable> { interface Partition extends Iterable { /* empty */ } Partition add(T x); Partition get(T x); void union(Partition x, Partition y); int elements(); int partitions(); }