@Override
	public int compareTo(final CharSeq set) {
		int result = 0;

		final int n = Math.min(array.length, set.array.length);
		for (int i = 0; i < n && result == 0; ++i) {
			result = array[i] - set.array[i];
		}
		if (result == 0) {
			result = array.length - set.array.length;
		}

		return result;
	}
Test whether this character set is empty.

@return {@code true} if this character set is empty, {@code false}
         otherwise.
jenetics/src/main/java/io/jenetics/util/CharSeq.java