LogLevel.d.ts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import { JavaObject } from '../java/lang/JavaObject';
  2. export declare class LogLevel extends JavaObject {
  3. /** the name of the enumeration value */
  4. private readonly __name;
  5. /** the ordinal value for the enumeration value */
  6. private readonly __ordinal;
  7. /** an array containing all values of this enumeration */
  8. private static readonly all_values_by_ordinal;
  9. /** an array containing all values of this enumeration indexed by their name*/
  10. private static readonly all_values_by_name;
  11. static readonly APP: LogLevel;
  12. static readonly ERROR: LogLevel;
  13. static readonly WARNING: LogLevel;
  14. static readonly INFO: LogLevel;
  15. static readonly DEBUG: LogLevel;
  16. private readonly level;
  17. /**
  18. * Der von der Ausfzählung intern genutzte Konstruktor der Aufzählung
  19. *
  20. * @param level der Integer-Wert des Log-Levels.
  21. */
  22. private constructor();
  23. /**
  24. * Gibt den Integer-Wert des Log-Levels zurück.
  25. *
  26. * @return der Integer-Wert des Log-Levels
  27. */
  28. toInteger(): number;
  29. /**
  30. * Returns the name of this enumeration value.
  31. *
  32. * @returns the name
  33. */
  34. private name;
  35. /**
  36. * Returns the ordinal value of this enumeration value.
  37. *
  38. * @returns the ordinal value
  39. */
  40. private ordinal;
  41. /**
  42. * Returns the name of this enumeration value.
  43. *
  44. * @returns the name
  45. */
  46. toString(): String;
  47. /**
  48. * Returns true if this and the other enumeration values are equal.
  49. *
  50. * @param other the other enumeration value
  51. *
  52. * @returns true if they are equal and false otherwise
  53. */
  54. equals(other: JavaObject): boolean;
  55. /**
  56. * Returns the ordinal value as hashcode, since the ordinal value is unique.
  57. *
  58. * @returns the ordinal value as hashcode
  59. */
  60. hashCode(): number;
  61. /**
  62. * Compares this enumeration value with the other enumeration value by their ordinal value.
  63. *
  64. * @param other the other enumeration value
  65. *
  66. * @returns a negative, zero or postive value as this enumeration value is less than, equal to
  67. * or greater than the other enumeration value
  68. */
  69. compareTo(other: LogLevel): number;
  70. /**
  71. * Returns an array with enumeration values.
  72. *
  73. * @returns the array with enumeration values
  74. */
  75. static values(): Array<LogLevel>;
  76. /**
  77. * Returns the enumeration value with the specified name.
  78. *
  79. * @param name the name of the enumeration value
  80. *
  81. * @returns the enumeration values or null
  82. */
  83. static valueOf(name: String): LogLevel | null;
  84. isTranspiledInstanceOf(name: string): boolean;
  85. }
  86. export declare function cast_de_nrw_schule_svws_logger_LogLevel(obj: unknown): LogLevel;