org.infinispan.protostream.sampledomain.Gender$___Marshaller_c4de73f511f1427025c68560bccc4a8b5b049a518bdd392f4a01637270156f3f Maven / Gradle / Ivy
/*
Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
for class org.infinispan.protostream.sampledomain.User.Gender
*/
package org.infinispan.protostream.sampledomain;
import org.infinispan.protostream.sampledomain.User.Gender;
public final class Gender$___Marshaller_c4de73f511f1427025c68560bccc4a8b5b049a518bdd392f4a01637270156f3f implements org.infinispan.protostream.EnumMarshaller {
@Override
public Class getJavaClass() { return org.infinispan.protostream.sampledomain.User.Gender.class; }
@Override
public String getTypeName() { return "sample_bank_account.User.Gender"; }
@Override
public org.infinispan.protostream.sampledomain.User.Gender decode(int $1) {
switch ($1) {
case 0: return org.infinispan.protostream.sampledomain.User.Gender.MALE;
case 1: return org.infinispan.protostream.sampledomain.User.Gender.FEMALE;
default: return null;
}
}
@Override
public int encode(org.infinispan.protostream.sampledomain.User.Gender $1) throws IllegalArgumentException {
switch ($1.ordinal()) {
case 0: return 0;
case 1: return 1;
default: throw new IllegalArgumentException("Unexpected org.infinispan.protostream.sampledomain.User.Gender enum value : " + $1.name());
}
}
}