Interface Wrapper

  • All Known Implementing Classes:
    ByteArrayWrapper, IdentityWrapper

    public interface Wrapper
    A Wrapper is used to decorate objects produced by the Encoder. A Wrapper, contrary to the Encoder, does not cause data conversion and it's used to provide additional behaviour to the encoded data such as equality/hashCode and indexing capabilities.
    • Method Detail

      • wrap

        java.lang.Object wrap​(java.lang.Object obj)
      • unwrap

        java.lang.Object unwrap​(java.lang.Object obj)
      • id

        byte id()
      • isFilterable

        boolean isFilterable()
        true if the wrapped format is suitable to be indexed or filtered, thus avoiding extra unwrapping.