tsip_stack_mode_t.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 tsip_stack_mode_t {
  10. tsip_stack_mode_ua,
  11. tsip_stack_mode_p2p,
  12. tsip_stack_mode_mediaproxy,
  13. tsip_stack_mode_mcu;
  14. public final int swigValue() {
  15. return swigValue;
  16. }
  17. public static tsip_stack_mode_t swigToEnum(int swigValue) {
  18. tsip_stack_mode_t[] swigValues = tsip_stack_mode_t.class.getEnumConstants();
  19. if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
  20. return swigValues[swigValue];
  21. for (tsip_stack_mode_t swigEnum : swigValues)
  22. if (swigEnum.swigValue == swigValue)
  23. return swigEnum;
  24. throw new IllegalArgumentException("No enum " + tsip_stack_mode_t.class + " with value " + swigValue);
  25. }
  26. @SuppressWarnings("unused")
  27. private tsip_stack_mode_t() {
  28. this.swigValue = SwigNext.next++;
  29. }
  30. @SuppressWarnings("unused")
  31. private tsip_stack_mode_t(int swigValue) {
  32. this.swigValue = swigValue;
  33. SwigNext.next = swigValue+1;
  34. }
  35. @SuppressWarnings("unused")
  36. private tsip_stack_mode_t(tsip_stack_mode_t swigEnum) {
  37. this.swigValue = swigEnum.swigValue;
  38. SwigNext.next = this.swigValue+1;
  39. }
  40. private final int swigValue;
  41. private static class SwigNext {
  42. private static int next = 0;
  43. }
  44. }