All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.dataconversion.IdentityWrapper Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.dataconversion;

/**
 * A wrapper that does not change the content.
 */
public class IdentityWrapper implements Wrapper {

   public static final IdentityWrapper INSTANCE = new IdentityWrapper();

   private IdentityWrapper() {
   }

   @Override
   public Object wrap(Object obj) {
      return obj;
   }

   @Override
   public Object unwrap(Object obj) {
      return obj;
   }

   @Override
   public byte id() {
      return WrapperIds.IDENTITY_WRAPPER;
   }

   @Override
   public boolean isFilterable() {
      return true;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy