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

org.infinispan.protostream.sampledomain.Currency$___Marshaller_eb17f3cd0d64adfdcc9994adf006579929ddbf5ad897e48471d0d1a2d6957040 Maven / Gradle / Ivy

/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.protostream.sampledomain.Account.Currency
*/

package org.infinispan.protostream.sampledomain;

import org.infinispan.protostream.sampledomain.Account.Currency;

public final class Currency$___Marshaller_eb17f3cd0d64adfdcc9994adf006579929ddbf5ad897e48471d0d1a2d6957040 implements org.infinispan.protostream.EnumMarshaller {

   @Override
   public Class getJavaClass() { return org.infinispan.protostream.sampledomain.Account.Currency.class; }

   @Override
   public String getTypeName() { return "sample_bank_account.Account.Currency"; }

   @Override
   public org.infinispan.protostream.sampledomain.Account.Currency decode(int $1) {
   switch ($1) {
      case 0: return org.infinispan.protostream.sampledomain.Account.Currency.EUR;
      case 1: return org.infinispan.protostream.sampledomain.Account.Currency.GBP;
      case 2: return org.infinispan.protostream.sampledomain.Account.Currency.USD;
      case 3: return org.infinispan.protostream.sampledomain.Account.Currency.BRL;
      default: return null;
   }
}
   
   @Override
   public int encode(org.infinispan.protostream.sampledomain.Account.Currency $1) throws IllegalArgumentException {
   switch ($1.ordinal()) {
      case 0: return 0;
      case 1: return 1;
      case 2: return 2;
      case 3: return 3;
      default: throw new IllegalArgumentException("Unexpected org.infinispan.protostream.sampledomain.Account.Currency enum value : " + $1.name());
   }
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy