@SuppressWarnings({"rawtypes", "unchecked"})
	public static <T> int compare(T c1, T c2, Comparator<T> comparator) {
		if (null == comparator) {
			return compare((Comparable) c1, (Comparable) c2);
		}
		return comparator.compare(c1, c2);
	}
@Test
	public void compareTest(){
		int compare = CompareUtil.compare(null, "a", true);
		assertTrue(compare > 0);

		compare = CompareUtil.compare(null, "a", false);
		assertTrue(compare < 0);
	}