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

com.github.dennisit.vplus.data.enums.support.EnumAction Maven / Gradle / Ivy

/*--------------------------------------------------------------------------
 *  Copyright (c) 2010-2020, Elon.su All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the elon developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: Elon.su, you can also mail [email protected]
 *--------------------------------------------------------------------------
*/
package com.github.dennisit.vplus.data.enums.support;
import java.util.List;

/**
 * Created by Elon.su on 17/11/14.
 */
public interface EnumAction {

    /**
     * 枚举集合
     * @return 枚举集合
     */
    public List valueList();

    /**
     * 根据数值查询
     * @param value 枚举值
     * @return 枚举
     */
    public T valueGet(int value);


    /**
     * 根据多个值查询
     * @param values 多个枚举值集合
     * @return 枚举集合
     */
    public List valueGet(List values);

    /**
     * 抽取多个枚举元素的数值
     * @param enums 多个枚举集合
     * @return 枚举值集合
     */
    public List toValues(List enums);


    /**
     * 抽取多个枚举元素的标签
     * @param enums 多个枚举集合
     * @return 枚举标签集合
     */
    public List toLabels(List enums);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy