net.sf.jpkgmk.util
Class ArrayUtil

java.lang.Object
  extended by net.sf.jpkgmk.util.ArrayUtil

public class ArrayUtil
extends java.lang.Object

Since:
1.0
Version:
$Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $

Constructor Summary
ArrayUtil()
           
 
Method Summary
static java.lang.String getArrayValue(java.lang.String[] items, int index)
          Returns the string value of the array element at the given index.
static java.lang.Integer getArrayValueAsInt(java.lang.String[] items, int index)
           
static java.lang.Long getArrayValueAsLong(java.lang.String[] items, int index)
           
static boolean isArrayValueInt(java.lang.String[] items, int index)
          Checks if the value at the given index of the given array is a valid integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayUtil

public ArrayUtil()
Method Detail

getArrayValue

public static final java.lang.String getArrayValue(java.lang.String[] items,
                                                   int index)
Returns the string value of the array element at the given index. If the element does not exist, null is returned.

Parameters:
items -
index -
Returns:

getArrayValueAsInt

public static java.lang.Integer getArrayValueAsInt(java.lang.String[] items,
                                                   int index)

getArrayValueAsLong

public static java.lang.Long getArrayValueAsLong(java.lang.String[] items,
                                                 int index)

isArrayValueInt

public static boolean isArrayValueInt(java.lang.String[] items,
                                      int index)
Checks if the value at the given index of the given array is a valid integer.

Parameters:
items -
index -
Returns:


Copyright © 2007-2008. All Rights Reserved.