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

com.gitee.yanfanvip.model.OptionsEnum Maven / Gradle / Ivy

The newest version!
package com.gitee.yanfanvip.model;

public enum OptionsEnum {
	PUT(1),
	PUTALL(2),
	REMOVE(3),
	CLEAR(4);
	
	private final int type;
	private OptionsEnum(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
	
	public static OptionsEnum get(int type) {
		for (OptionsEnum e : OptionsEnum.values()) {
			if(e.type == type){
				return e;
			}
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy