src/org/kocakosm/pitaya/util/Comparators.java
public static <T> Comparator<T> compose(Iterable<? extends Comparator<? super T>> comparators)
	{
		return new CompositeComparator<T>(comparators);
	}
public static <T> Comparator<T> compose(Iterable<? extends Comparator<? super T>> comparators)
	{
		return new CompositeComparator<T>(comparators);
	}
Returns a {@code Comparator} that will call each {@code Comparator}
in the given {@code Iterable} until one of them returns a non-zero
result (will return {@code 0} if they all return {@code 0}).

@param <T> the parameters type of the returned {@code Comparator}.
@param comparators the {@code Comparator}s to compose.

@return the composed {@code Comparator}.

@throws NullPointerException if {@code comparators} is {@code null}
of if it contains a {@code null} reference.
@throws IllegalArgumentException if {@code comparators} is empty.