Package org.kissweb

Class ArrayUtils

java.lang.Object
org.kissweb.ArrayUtils

public class ArrayUtils extends Object
Utility methods to help deal with arrays. Author: Blake McBride Date: 11/5/23
  • Constructor Details

    • ArrayUtils

      public ArrayUtils()
  • Method Details

    • toPrimitiveByteArray

      public static byte[] toPrimitiveByteArray(Byte[] byteObjects)
      Converts a Byte array to a byte array.
      Parameters:
      byteObjects - The Byte array to convert.
      Returns:
      A primitive byte array corresponding to the Byte array.
    • toWrapperByteArray

      public static Byte[] toWrapperByteArray(byte[] bytesPrimitive)
      Converts a byte array to a Byte array.
      Parameters:
      bytesPrimitive - The primitive byte array to convert.
      Returns:
      A Byte array corresponding to the primitive byte array.