import { JavaObject } from './JavaObject'; import type { Comparable } from './Comparable'; /** * Dieses Abstrakte Klasse dient der Emulation der abstrakten Java-Klasse java.lang.Enum */ export declare abstract class JavaEnum> extends JavaObject implements Comparable { /** the name of the enumeration value */ readonly __name: string; /** the ordinal value for the enumeration value */ readonly __ordinal: number; /** * Erzeugt eine neuen Enum-Eintrag mit den übergebenen Informationen. * Die Einträge werden unter dem Namen des Enums und * dem Namen des Eintrags bzw. abgespeichtert. * * @param name der Bezeichner des Enum-Eintrags * @param ordinal die eindeutige Nummer des Enum-Eintrags */ protected constructor(name: string, ordinal: number); /** * Returns the name of this enumeration value. * * @returns the name */ name(): string; /** * Returns the ordinal value of this enumeration value. * * @returns the ordinal value */ ordinal(): number; /** * Returns the name of this enumeration value. * * @returns the name */ toString(): string; /** * Returns true if this and the other enumeration values are equal. * * @param other the other enumeration value * * @returns true if they are equal and false otherwise */ equals(other: JavaObject | null): boolean; /** * Returns the ordinal value as hashcode, since the ordinal value is unique. * * @returns the ordinal value as hashcode */ hashCode(): number; /** * Compares this enumeration value with the other enumeration value by their ordinal value. * * @param other the other enumeration value * * @returns a negative, zero or postive value as this enumeration value is less than, equal to * or greater than the other enumeration value */ compareTo(other: JavaEnum): number; transpilerCanonicalName(): string; isTranspiledInstanceOf(name: string): boolean; } export declare function cast_java_lang_Enum>(obj: unknown): JavaEnum; //# sourceMappingURL=JavaEnum.d.ts.map