[Schmitzm-commits] r2141 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 12 14:35:04 CET 2012
Author: mojays
Date: 2012-11-12 14:35:04 +0100 (Mon, 12 Nov 2012)
New Revision: 2141
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
LangUtil: new method to sort a list (naive!)
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-11-12 13:33:06 UTC (rev 2140)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2012-11-12 13:35:04 UTC (rev 2141)
@@ -2663,4 +2663,13 @@
return destList;
}
+
+ /**
+ * Sorts a list according to a {@link Comparator}.
+ * @param sourceList list to sort
+ * @param comparator comparator used for sort
+ */
+ public static <T> void sortList(List<T> sourceList, Comparator<T> comparator) {
+ sortList(sourceList,comparator,null);
+ }
}
More information about the Schmitzm-commits
mailing list