/*
 * SDK Pullenti Lingvo, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software.
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.ner.vacance.internal;

public class VacanceTokenType implements Comparable<VacanceTokenType> {

    public static final VacanceTokenType UNDEFINED; // 0

    public static final VacanceTokenType DUMMY; // 1

    public static final VacanceTokenType STOP; // 2

    public static final VacanceTokenType EXPIRED; // 3

    public static final VacanceTokenType NAME; // 4

    public static final VacanceTokenType DATE; // 5

    public static final VacanceTokenType SKILL; // 6

    public static final VacanceTokenType PLUS; // 7

    public static final VacanceTokenType EXPIERENCE; // 8

    public static final VacanceTokenType EDUCATION; // 9

    public static final VacanceTokenType MONEY; // 10

    public static final VacanceTokenType LANGUAGE; // 11

    public static final VacanceTokenType MORAL; // 12

    public static final VacanceTokenType DRIVING; // 13

    public static final VacanceTokenType LICENSE; // 14


    public int value() { return m_val; }
    private int m_val;
    private String m_str;
    private VacanceTokenType(int val, String str) { m_val = val; m_str = str; }
    @Override
    public String toString() {
        if(m_str != null) return m_str;
        return ((Integer)m_val).toString();
    }
    @Override
    public int hashCode() {
        return (int)m_val;
    }
    @Override
    public int compareTo(VacanceTokenType v) {
        if(m_val < v.m_val) return -1;
        if(m_val > v.m_val) return 1;
        return 0;
    }
    private static java.util.HashMap<Integer, VacanceTokenType> mapIntToEnum; 
    private static java.util.HashMap<String, VacanceTokenType> mapStringToEnum; 
    private static VacanceTokenType[] m_Values; 
    private static java.util.Collection<Integer> m_Keys; 
    public static VacanceTokenType of(int val) {
        if (mapIntToEnum.containsKey(val)) return mapIntToEnum.get(val);
        VacanceTokenType item = new VacanceTokenType(val, ((Integer)val).toString());
        mapIntToEnum.put(val, item);
        mapStringToEnum.put(item.m_str.toUpperCase(), item);
        return item; 
    }
    public static VacanceTokenType of(String str) {
        str = str.toUpperCase(); 
        if (mapStringToEnum.containsKey(str)) return mapStringToEnum.get(str);
        return null; 
    }
    public static boolean isDefined(Object val) {
        if(val instanceof Integer) return m_Keys.contains((Integer)val); 
        return false; 
    }
    public static VacanceTokenType[] getValues() {
        return m_Values; 
    }
    static {
        mapIntToEnum = new java.util.HashMap<Integer, VacanceTokenType>();
        mapStringToEnum = new java.util.HashMap<String, VacanceTokenType>();
        UNDEFINED = new VacanceTokenType(0, "UNDEFINED");
        mapIntToEnum.put(UNDEFINED.value(), UNDEFINED);
        mapStringToEnum.put(UNDEFINED.m_str.toUpperCase(), UNDEFINED);
        DUMMY = new VacanceTokenType(1, "DUMMY");
        mapIntToEnum.put(DUMMY.value(), DUMMY);
        mapStringToEnum.put(DUMMY.m_str.toUpperCase(), DUMMY);
        STOP = new VacanceTokenType(2, "STOP");
        mapIntToEnum.put(STOP.value(), STOP);
        mapStringToEnum.put(STOP.m_str.toUpperCase(), STOP);
        EXPIRED = new VacanceTokenType(3, "EXPIRED");
        mapIntToEnum.put(EXPIRED.value(), EXPIRED);
        mapStringToEnum.put(EXPIRED.m_str.toUpperCase(), EXPIRED);
        NAME = new VacanceTokenType(4, "NAME");
        mapIntToEnum.put(NAME.value(), NAME);
        mapStringToEnum.put(NAME.m_str.toUpperCase(), NAME);
        DATE = new VacanceTokenType(5, "DATE");
        mapIntToEnum.put(DATE.value(), DATE);
        mapStringToEnum.put(DATE.m_str.toUpperCase(), DATE);
        SKILL = new VacanceTokenType(6, "SKILL");
        mapIntToEnum.put(SKILL.value(), SKILL);
        mapStringToEnum.put(SKILL.m_str.toUpperCase(), SKILL);
        PLUS = new VacanceTokenType(7, "PLUS");
        mapIntToEnum.put(PLUS.value(), PLUS);
        mapStringToEnum.put(PLUS.m_str.toUpperCase(), PLUS);
        EXPIERENCE = new VacanceTokenType(8, "EXPIERENCE");
        mapIntToEnum.put(EXPIERENCE.value(), EXPIERENCE);
        mapStringToEnum.put(EXPIERENCE.m_str.toUpperCase(), EXPIERENCE);
        EDUCATION = new VacanceTokenType(9, "EDUCATION");
        mapIntToEnum.put(EDUCATION.value(), EDUCATION);
        mapStringToEnum.put(EDUCATION.m_str.toUpperCase(), EDUCATION);
        MONEY = new VacanceTokenType(10, "MONEY");
        mapIntToEnum.put(MONEY.value(), MONEY);
        mapStringToEnum.put(MONEY.m_str.toUpperCase(), MONEY);
        LANGUAGE = new VacanceTokenType(11, "LANGUAGE");
        mapIntToEnum.put(LANGUAGE.value(), LANGUAGE);
        mapStringToEnum.put(LANGUAGE.m_str.toUpperCase(), LANGUAGE);
        MORAL = new VacanceTokenType(12, "MORAL");
        mapIntToEnum.put(MORAL.value(), MORAL);
        mapStringToEnum.put(MORAL.m_str.toUpperCase(), MORAL);
        DRIVING = new VacanceTokenType(13, "DRIVING");
        mapIntToEnum.put(DRIVING.value(), DRIVING);
        mapStringToEnum.put(DRIVING.m_str.toUpperCase(), DRIVING);
        LICENSE = new VacanceTokenType(14, "LICENSE");
        mapIntToEnum.put(LICENSE.value(), LICENSE);
        mapStringToEnum.put(LICENSE.m_str.toUpperCase(), LICENSE);
        java.util.Collection<VacanceTokenType> col = mapIntToEnum.values();
        m_Values = new VacanceTokenType[col.size()];
        col.toArray(m_Values);
        m_Keys = new java.util.ArrayList<Integer>(mapIntToEnum.keySet());
    }
}
