org.infinispan.scripting.impl.ExecutionMode$___Marshaller_f810020f3d5a57ebf1939e637e6e88ca03172e750ddebbbe9395a6cfc01c4d07 Maven / Gradle / Ivy
/*
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());
}
}
}