From: <pat...@us...> - 2010-10-28 22:16:14
|
Revision: 1146 http://cishell.svn.sourceforge.net/cishell/?rev=1146&view=rev Author: pataphil Date: 2010-10-28 22:16:06 +0000 (Thu, 28 Oct 2010) Log Message: ----------- * Implemented ToCaseFunction. * Reviewed by Joseph. Added Paths: ----------- trunk/core/org.cishell.utilities/src/org/cishell/utilities/ToCaseFunction.java Added: trunk/core/org.cishell.utilities/src/org/cishell/utilities/ToCaseFunction.java =================================================================== --- trunk/core/org.cishell.utilities/src/org/cishell/utilities/ToCaseFunction.java (rev 0) +++ trunk/core/org.cishell.utilities/src/org/cishell/utilities/ToCaseFunction.java 2010-10-28 22:16:06 UTC (rev 1146) @@ -0,0 +1,16 @@ +package org.cishell.utilities; + +import com.google.common.base.Function; + +public enum ToCaseFunction implements Function<String, String> { + LOWER { + public String apply(String from) { + return from.toLowerCase(); + } + }, + UPPER { + public String apply(String from) { + return from.toUpperCase(); + } + }; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |