Little more cleanup.

This commit is contained in:
GJ 2013-05-21 14:03:00 -04:00
parent bf8945ac59
commit 9aa49a09da

View File

@ -11,11 +11,7 @@ public class StringUtils {
* @return the capitalized string * @return the capitalized string
*/ */
public static String getCapitalized(String target) { public static String getCapitalized(String target) {
String firstLetter = target.substring(0, 1); return target.substring(0, 1).toUpperCase() + target.substring(1).toLowerCase();
String remainder = target.substring(1);
String capitalized = firstLetter.toUpperCase() + remainder.toLowerCase();
return capitalized;
} }
/** /**
@ -100,22 +96,6 @@ public class StringUtils {
} }
} }
/**
* Determine if a string represents a Long
*
* @param string String to check
* @return true if the string is a Long, false otherwise
*/
public static boolean isLong(String string) {
try {
Long.parseLong(string);
return true;
}
catch (NumberFormatException nFE) {
return false;
}
}
/** /**
* Determine if a string represents a Double * Determine if a string represents a Double
* *
@ -131,5 +111,4 @@ public class StringUtils {
return false; return false;
} }
} }
} }