Class ObjectToArrayConverter


  • public class ObjectToArrayConverter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object toArray​(java.util.Collection object, java.lang.Class<?> clazz)  
      static byte[] toByteArray​(java.util.Collection<?> collection)  
      static double[] toDoubleArray​(java.util.Collection<?> collection)  
      static int[] toIntArray​(java.util.Collection<?> collection)  
      static long[] toLongArray​(java.util.Collection<?> collection)  
      static java.lang.Object toPrimativArray​(java.util.Collection<?> object, java.lang.Class<?> componentType)  
      static short[] toShortArray​(java.util.Collection<?> collection)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectToArrayConverter

        public ObjectToArrayConverter()
    • Method Detail

      • toPrimativArray

        public static java.lang.Object toPrimativArray​(java.util.Collection<?> object,
                                                       java.lang.Class<?> componentType)
      • toArray

        public static java.lang.Object toArray​(java.util.Collection object,
                                               java.lang.Class<?> clazz)
      • toDoubleArray

        public static double[] toDoubleArray​(java.util.Collection<?> collection)
      • toLongArray

        public static long[] toLongArray​(java.util.Collection<?> collection)
      • toIntArray

        public static int[] toIntArray​(java.util.Collection<?> collection)
      • toShortArray

        public static short[] toShortArray​(java.util.Collection<?> collection)
      • toByteArray

        public static byte[] toByteArray​(java.util.Collection<?> collection)