Package jadex.common

Class ByteArrayWrapper

java.lang.Object
jadex.common.ByteArrayWrapper

public class ByteArrayWrapper extends Object
Wrapper to allow byte arrays as hash keys.
  • Field Details

    • array

      protected byte[] array
      The wrapped byte array.
  • Constructor Details

    • ByteArrayWrapper

      public ByteArrayWrapper()
      Creates the wrapper.
    • ByteArrayWrapper

      public ByteArrayWrapper(byte[] array)
      Creates the wrapper.
  • Method Details

    • getArray

      public byte[] getArray()
      Gets the array.
      Returns:
      The array.
    • setArray

      public void setArray(byte[] array)
      Sets the array.
      Parameters:
      array - The array.
    • hashCode

      public int hashCode()
      Creates a hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Compares two arrays.
      Overrides:
      equals in class Object