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

org.infinispan.counter.api.CounterState$___Marshaller_93aa5d27c0d57954ec79247b055254b02d5c87a64e0764e392772b387eb7542d Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
/*
 Generated by org.infinispan.protostream.annotations.impl.processor.MarshallerSourceCodeGenerator
 for class org.infinispan.counter.api.CounterState
*/

package org.infinispan.counter.api;

import org.infinispan.counter.api.CounterState;

public final class CounterState$___Marshaller_93aa5d27c0d57954ec79247b055254b02d5c87a64e0764e392772b387eb7542d implements org.infinispan.protostream.EnumMarshaller {

   @Override
   public Class getJavaClass() { return org.infinispan.counter.api.CounterState.class; }

   @Override
   public String getTypeName() { return "org.infinispan.persistence.commons.CounterState"; }

   @Override
   public org.infinispan.counter.api.CounterState decode(int $1) {
   switch ($1) {
      case 0: return org.infinispan.counter.api.CounterState.VALID;
      case 1: return org.infinispan.counter.api.CounterState.LOWER_BOUND_REACHED;
      case 2: return org.infinispan.counter.api.CounterState.UPPER_BOUND_REACHED;
      default: return null;
   }
}
   
   @Override
   public int encode(org.infinispan.counter.api.CounterState $1) throws IllegalArgumentException {
   switch ($1.ordinal()) {
      case 0: return 0;
      case 1: return 1;
      case 2: return 2;
      default: throw new IllegalArgumentException("Unexpected org.infinispan.counter.api.CounterState enum value : " + $1.name());
   }
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy