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

com.yixan.tools.common.cache.BaseKeys Maven / Gradle / Ivy

There is a newer version: 3.7.1
Show newest version
package com.yixan.tools.common.cache;

/**
 * ICacheKeys的基础实现类
 *
 * @author zhaohuihua
 * @version V1.0 2017年6月6日
 */
public class BaseKeys {

    private String name;

    private Class type;

    public BaseKeys(String name, Class type) {
        this.name = name;
        this.type = type;
    }

    public Class type() {
        return type;
    }

    public String name() {
        return name;
    }

    public static class KeyValue extends BaseKeys implements ICacheKeys.KeyValue {

        public KeyValue(String name, Class type) {
            super(name, type);
        }
    }

    public static class KeyList extends BaseKeys implements ICacheKeys.KeyList {

        public KeyList(String name, Class type) {
            super(name, type);
        }
    }

    public static class FieldValue extends BaseKeys implements ICacheKeys.FieldValue {

        public FieldValue(String name, Class type) {
            super(name, type);
        }
    }

    public static class FieldList extends BaseKeys implements ICacheKeys.FieldList {

        public FieldList(String name, Class type) {
            super(name, type);
        }
    }

    public static class KeyString extends KeyValue {

        public KeyString(String name) {
            super(name, String.class);
        }
    }

    public static class FieldString extends FieldValue {

        public FieldString(String name) {
            super(name, String.class);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy