magi.toolkit.util
Class StringUtil

java.lang.Object
  |
  +--magi.toolkit.util.StringUtil

public class StringUtil
extends java.lang.Object

A collection of useful String utility methods.

Author:
Paul Atkinson, Magi Systems Pty Ltd.

Method Summary
static boolean isAlphabetic(char character)
          Check if the character passed in is alphabetic or not.
static boolean isAlphabetic(java.lang.String alphaString)
          Check if the String passed in is alphabetic or not.
static boolean isNumeric(char character)
          Check if the character passed in is numeric or not.
static boolean isNumeric(java.lang.String numString)
          Check if the String passed in is numeric or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isNumeric

public static boolean isNumeric(char character)
Check if the character passed in is numeric or not.

Parameters:
character - the char value to check for numeric.
Returns:
true if numeric, and false if not.

isNumeric

public static boolean isNumeric(java.lang.String numString)
Check if the String passed in is numeric or not.

Parameters:
numString - the String of characters to check for numeric.
Returns:
true if numeric, and false if not.

isAlphabetic

public static boolean isAlphabetic(char character)
Check if the character passed in is alphabetic or not.

Parameters:
character - the char value to check for alphabetic.
Returns:
true if alphabetic, and false if not.

isAlphabetic

public static boolean isAlphabetic(java.lang.String alphaString)
Check if the String passed in is alphabetic or not.

Parameters:
alphaString - the String of characters to check for alphabetic.
Returns:
true if alphabetic, and false if not.