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

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

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

/**
 * Encoder that does not change the content.
 *
 * @since 9.1
 * @deprecated since 12.1. to be removed in a future version.
 */
@Deprecated(forRemoval=true, since = "12.1")
public class IdentityEncoder implements Encoder {

   public static final IdentityEncoder INSTANCE = new IdentityEncoder();

   @Override
   public Object toStorage(Object content) {
      return content;
   }

   @Override
   public Object fromStorage(Object content) {
      return content;
   }

   @Override
   public boolean isStorageFormatFilterable() {
      return false;
   }

   @Override
   public MediaType getStorageFormat() {
      return null;
   }

   @Override
   public short id() {
      return EncoderIds.IDENTITY;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy