a whole bunch of stuff
[ephemerata.git] / KezvhLib / src-lib / net / kezvh / collections / Forest.java
blob14159df0073c6d9c5c89bf1e4746a32c766662ab
1 /**
3 */
4 package net.kezvh.collections;
6 import java.util.Set;
8 /**
9 * @author afflux
11 * @param <T> FIXME comment
13 public interface Forest<T> {
14 /**
15 * @param element
16 * @return the set to which the element belongs
18 Set<T> find(T element);
20 /**
21 * unify the sets a and b
23 * @param a
24 * @param b
26 void union(T a, T b);
28 /**
29 * @return the number of SETS in the forest
31 int size();
33 /**
34 * @return the number of elements in the forest
36 int elements();