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

tech.aroma.thrift.ProgrammingLanguage Maven / Gradle / Ivy

Go to download

Part of the Aroma Project. This project contains the Service and Model Definitions. From this the Server and Client interfaces are generated for the Aroma Service.

There is a newer version: 2.2
Show newest version
/**
 * Autogenerated by Thrift Compiler (0.9.3)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package tech.aroma.thrift;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

/**
 * Applications are usually written in one main language.
 */
public enum ProgrammingLanguage implements org.apache.thrift.TEnum {
  JAVA(1),
  CPP(2),
  C_SHARP(3),
  C(4),
  OBJECTIVE_C(5),
  SWIFT(6),
  DOT_NET(7),
  RUBY(8),
  GROOVY(9),
  PYTHON(10),
  PHP(11),
  NODE(12),
  DART(13),
  OTHER(14);

  private final int value;

  private ProgrammingLanguage(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static ProgrammingLanguage findByValue(int value) { 
    switch (value) {
      case 1:
        return JAVA;
      case 2:
        return CPP;
      case 3:
        return C_SHARP;
      case 4:
        return C;
      case 5:
        return OBJECTIVE_C;
      case 6:
        return SWIFT;
      case 7:
        return DOT_NET;
      case 8:
        return RUBY;
      case 9:
        return GROOVY;
      case 10:
        return PYTHON;
      case 11:
        return PHP;
      case 12:
        return NODE;
      case 13:
        return DART;
      case 14:
        return OTHER;
      default:
        return null;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy