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

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

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

public enum FrameEnum {
	PING(0),
	PUT(1),
	PUTALL(2),
	REMOVE(3),
	CLEAR(4),
	PULL_MESSAGE_COMPLETE(5),//拉取失败消息完成
	SYNC_START(11),
	SYNC_COMPLETE(12);
	
	private final int type;
	private FrameEnum(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
	
	public static FrameEnum get(int type) {
		for (FrameEnum e : FrameEnum.values()) {
			if(e.type == type){
				return e;
			}
		}
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy