Class IdentityWrapper

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

public class IdentityWrapper extends Object implements Wrapper
A wrapper that does not change the content.
  • Field Details

  • 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.