/[schmitzm]
ViewVC logotype

Revision 1562


Jump to revision: Previous Next
Author: alfonx
Date: Sat Apr 23 10:56:01 2011 UTC (13 years, 10 months ago)
Changed paths: 2
Log Message:
	/**
	 * Entfernt alle <code>null</code> Werte aus einem Array.
	 * 
	 * @param withNulls
	 * @return withoutNulls
	 */
	public static <E> E[] removeNulls(E... withNulls) {
		E[] result = Arrays.copyOfRange(withNulls, 0, 0);
		// E[] result = withNulls.clone();
		for (E o : withNulls) {
			if (o != null)
				result = extendArray(result, o);
		}
		return result;
	}

Changed paths

Path Details
Directorytrunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java modified , text changed
Directorytrunk/schmitzm-core/src/test/java/de/schmitzm/lang/LangUtilTest.java modified , text changed

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26