Class ByteArrayWrapper

java.lang.Object
org.infinispan.commons.dataconversion.ByteArrayWrapper
All Implemented Interfaces:
Wrapper

public class ByteArrayWrapper extends Object implements Wrapper
Wraps byte[] on a WrappedByteArray to provide equality and hashCode support, leaving other objects unchanged.
Since:
9.1
  • Field Details

  • Constructor Details

    • ByteArrayWrapper

      public ByteArrayWrapper()
  • Method Details

    • wrap

      public Object wrap(Object obj)
      Specified by:
      wrap in interface Wrapper
    • unwrap

      public Object unwrap(Object obj)
      Specified by:
      unwrap in interface Wrapper
    • id

      public byte id()
      Specified by:
      id in interface Wrapper
    • isFilterable

      public boolean isFilterable()
      Specified by:
      isFilterable in interface Wrapper
      Returns:
      true if the wrapped format is suitable to be indexed or filtered, thus avoiding extra unwrapping.