Class ByteArrayWrapper
- java.lang.Object
-
- org.infinispan.commons.dataconversion.ByteArrayWrapper
-
- All Implemented Interfaces:
Wrapper
public class ByteArrayWrapper extends Object implements Wrapper
Wraps byte[] on aWrappedByteArray
to provide equality and hashCode support, leaving other objects unchanged.- Since:
- 9.1
-
-
Field Summary
Fields Modifier and Type Field Description static ByteArrayWrapper
INSTANCE
-
Constructor Summary
Constructors Constructor Description ByteArrayWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
id()
boolean
isFilterable()
Object
unwrap(Object obj)
Object
wrap(Object obj)
-
-
-
Field Detail
-
INSTANCE
public static final ByteArrayWrapper INSTANCE
-
-
Method Detail
-
isFilterable
public boolean isFilterable()
- Specified by:
isFilterable
in interfaceWrapper
- Returns:
- true if the wrapped format is suitable to be indexed or filtered, thus avoiding extra unwrapping.
-
-