com.uwyn.rife.tools
Class ArrayUtils

java.lang.Object
  extended by com.uwyn.rife.tools.ArrayUtils

public class ArrayUtils
extends Object


Nested Class Summary
static class ArrayUtils.ArrayType
           
 
Constructor Summary
ArrayUtils()
           
 
Method Summary
static boolean[] createBooleanArray(Object[] array)
           
static byte[] createByteArray(Object[] array)
           
static char[] createCharArray(Object[] array)
           
static double[] createDoubleArray(Object[] array)
           
static float[] createFloatArray(Object[] array)
           
static int[] createIntArray(Object[] array)
           
static long[] createLongArray(Object[] array)
           
static short[] createShortArray(Object[] array)
           
static String[] createStringArray(boolean[] array)
           
static String[] createStringArray(byte[] array)
           
static String[] createStringArray(char[] array)
           
static String[] createStringArray(double[] array)
           
static String[] createStringArray(float[] array)
           
static String[] createStringArray(int[] array)
           
static String[] createStringArray(long[] array)
           
static String[] createStringArray(Object[] array)
           
static String[] createStringArray(Object source, ConstrainedProperty constrainedProperty)
          Convert an Object to a textual representation in a String array.
static String[] createStringArray(short[] array)
           
static ArrayUtils.ArrayType getArrayType(Object object)
           
static boolean[] join(boolean[] first, boolean second)
           
static boolean[] join(boolean[] first, boolean[] second)
           
static byte[] join(byte[] first, byte second)
           
static byte[] join(byte[] first, byte[] second)
           
static char[] join(char[] first, char second)
           
static char[] join(char[] first, char[] second)
           
static double[] join(double[] first, double second)
           
static double[] join(double[] first, double[] second)
           
static float[] join(float[] first, float second)
           
static float[] join(float[] first, float[] second)
           
static int[] join(int[] first, int second)
           
static int[] join(int[] first, int[] second)
           
static long[] join(long[] first, long second)
           
static long[] join(long[] first, long[] second)
           
static short[] join(short[] first, short second)
           
static short[] join(short[] first, short[] second)
           
static String[] join(String[] first, String second)
           
static String[] join(String[] first, String[] second)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayUtils

public ArrayUtils()
Method Detail

getArrayType

public static ArrayUtils.ArrayType getArrayType(Object object)

createStringArray

public static String[] createStringArray(Object source,
                                         ConstrainedProperty constrainedProperty)
Convert an Object to a textual representation in a String array.

Note that array of type byte[] are explicitely not converted since that would result in many binary data to create OutOfMemoryError exceptions.

Parameters:
source - The Object to convert.
constrainedProperty - The ConstrainedProperty that gives more information about the source, can be null.
Returns:
The resulting String array; or

null if source is null.

Since:
1.0

createStringArray

public static String[] createStringArray(Object[] array)

createStringArray

public static String[] createStringArray(boolean[] array)

createStringArray

public static String[] createStringArray(byte[] array)

createStringArray

public static String[] createStringArray(char[] array)

createStringArray

public static String[] createStringArray(short[] array)

createStringArray

public static String[] createStringArray(int[] array)

createStringArray

public static String[] createStringArray(long[] array)

createStringArray

public static String[] createStringArray(float[] array)

createStringArray

public static String[] createStringArray(double[] array)

createBooleanArray

public static boolean[] createBooleanArray(Object[] array)

createByteArray

public static byte[] createByteArray(Object[] array)

createCharArray

public static char[] createCharArray(Object[] array)

createShortArray

public static short[] createShortArray(Object[] array)

createIntArray

public static int[] createIntArray(Object[] array)

createLongArray

public static long[] createLongArray(Object[] array)

createFloatArray

public static float[] createFloatArray(Object[] array)

createDoubleArray

public static double[] createDoubleArray(Object[] array)

join

public static String[] join(String[] first,
                            String[] second)

join

public static String[] join(String[] first,
                            String second)

join

public static byte[] join(byte[] first,
                          byte[] second)

join

public static byte[] join(byte[] first,
                          byte second)

join

public static char[] join(char[] first,
                          char[] second)

join

public static char[] join(char[] first,
                          char second)

join

public static short[] join(short[] first,
                           short[] second)

join

public static short[] join(short[] first,
                           short second)

join

public static int[] join(int[] first,
                         int[] second)

join

public static int[] join(int[] first,
                         int second)

join

public static long[] join(long[] first,
                          long[] second)

join

public static long[] join(long[] first,
                          long second)

join

public static float[] join(float[] first,
                           float[] second)

join

public static float[] join(float[] first,
                           float second)

join

public static double[] join(double[] first,
                            double[] second)

join

public static double[] join(double[] first,
                            double second)

join

public static boolean[] join(boolean[] first,
                             boolean[] second)

join

public static boolean[] join(boolean[] first,
                             boolean second)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.