Class ByteArrayWrapper

  • All Implemented Interfaces:

    public class ByteArrayWrapper
    extends java.lang.Object
    implements Wrapper
    Wraps byte[] on a WrappedByteArray to provide equality and hashCode support, leaving other objects unchanged.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte id()  
      boolean isFilterable()  
      java.lang.Object unwrap​(java.lang.Object obj)  
      java.lang.Object wrap​(java.lang.Object obj)  
      • Methods inherited from class java.lang.Object

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

      • ByteArrayWrapper

        public ByteArrayWrapper()
    • Method Detail

      • wrap

        public java.lang.Object wrap​(java.lang.Object obj)
        Specified by:
        wrap in interface Wrapper
      • unwrap

        public java.lang.Object unwrap​(java.lang.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
        true if the wrapped format is suitable to be indexed or filtered, thus avoiding extra unwrapping.