tmedia_mode_t.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.9
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.tinyWRAP;
  9. public enum tmedia_mode_t {
  10. tmedia_mode_none,
  11. tmedia_mode_optional,
  12. tmedia_mode_mandatory;
  13. public final int swigValue() {
  14. return swigValue;
  15. }
  16. public static tmedia_mode_t swigToEnum(int swigValue) {
  17. tmedia_mode_t[] swigValues = tmedia_mode_t.class.getEnumConstants();
  18. if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
  19. return swigValues[swigValue];
  20. for (tmedia_mode_t swigEnum : swigValues)
  21. if (swigEnum.swigValue == swigValue)
  22. return swigEnum;
  23. throw new IllegalArgumentException("No enum " + tmedia_mode_t.class + " with value " + swigValue);
  24. }
  25. @SuppressWarnings("unused")
  26. private tmedia_mode_t() {
  27. this.swigValue = SwigNext.next++;
  28. }
  29. @SuppressWarnings("unused")
  30. private tmedia_mode_t(int swigValue) {
  31. this.swigValue = swigValue;
  32. SwigNext.next = swigValue+1;
  33. }
  34. @SuppressWarnings("unused")
  35. private tmedia_mode_t(tmedia_mode_t swigEnum) {
  36. this.swigValue = swigEnum.swigValue;
  37. SwigNext.next = this.swigValue+1;
  38. }
  39. private final int swigValue;
  40. private static class SwigNext {
  41. private static int next = 0;
  42. }
  43. }