All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fastchar.extjs.core.enums.FastEnumInfo Maven / Gradle / Ivy

Go to download

FastChar-ExtJs is a Java Web framework that uses extjs libraries.Quickly build a background management system

There is a newer version: 2.2.2
Show newest version
package com.fastchar.extjs.core.enums;

import com.fastchar.core.FastMapWrap;

import java.util.LinkedHashMap;

public class FastEnumInfo extends LinkedHashMap {
    protected transient FastMapWrap mapWrap;

    public FastEnumInfo() {
        super(16);
        mapWrap = FastMapWrap.newInstance(this);
    }

    public FastMapWrap getMapWrap() {
        return mapWrap;
    }

    public String getName() {
        return mapWrap.getString("name");
    }

    public FastEnumInfo setName(String name) {
        put("name", name);
        return this;
    }

    public Object getId() {
        return mapWrap.get("id");
    }

    public FastEnumInfo setId(Object id) {
        put("id", id);
        return this;
    }

    public String getText() {
        return mapWrap.getString("text");
    }

    public FastEnumInfo setText(String text) {
        put("text", text);
        return this;
    }

    public String getString(String name) {
        return mapWrap.getString(name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy