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

org.infinispan.scripting.impl.ExecutionMode$___Marshaller_f810020f3d5a57ebf1939e637e6e88ca03172e750ddebbbe9395a6cfc01c4d07 Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev03
Show newest version
/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.scripting.impl.ExecutionMode
*/

package org.infinispan.scripting.impl;

public final class ExecutionMode$___Marshaller_f810020f3d5a57ebf1939e637e6e88ca03172e750ddebbbe9395a6cfc01c4d07 implements org.infinispan.protostream.EnumMarshaller {

   @Override
   public Class getJavaClass() { return org.infinispan.scripting.impl.ExecutionMode.class; }
   
   @Override
   public String getTypeName() { return "org.infinispan.persistence.scripting.ExecutionMode"; }
   
   @Override
   public org.infinispan.scripting.impl.ExecutionMode decode(int $1) {
      switch ($1) {
         case 0: return org.infinispan.scripting.impl.ExecutionMode.LOCAL;
         case 1: return org.infinispan.scripting.impl.ExecutionMode.DISTRIBUTED;
         default: return null;
      }
   }
   
   @Override
   public int encode(org.infinispan.scripting.impl.ExecutionMode $1) throws IllegalArgumentException {
      switch ($1.ordinal()) {
         case 0: return 0;
         case 1: return 1;
         default: throw new IllegalArgumentException("Unexpected org.infinispan.scripting.impl.ExecutionMode enum value : " + $1.name());
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy