| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- package com.beanit.enums;
- import java.util.HashMap;
- import java.util.Map;
- public enum eObjectId {
- OBJ_CurrentLinkState (111, "OBJ_CurrentLinkState"), /* 교통소통정보 */
- OBJ_EventIdentity (112, "OBJ_EventIdentity"), /* 교통통제정보 */
- OBJ_IncidentIdentity (113, "OBJ_IncidentIdentity"), /* 돌발상황발생정보 */
- OBJ_IncidentConditions (114, "OBJ_IncidentConditions"), /* 돌발상황정보 */
- OBJ_RoadwaySurfaceStatus (115, "OBJ_RoadwaySurfaceStatus"), /* 도로상태정보 */
- OBJ_WeatherInformation (116, "OBJ_WeatherInformation"), /* 기상정보 */
- OBJ_LinkRoadwayGeometry (117, "OBJ_LinkRoadwayGeometry"), /* 도로관리정보 */
- OBJ_ProbeVehicleDetection (118, "OBJ_ProbeVehicleDetection"), /* 도로관리정보 */
- OBJ_DetectorCollection (119, "OBJ_DetectorCollection"); /* 수집, 최근 OBU 트랜잭션 수집정보 */
- private final int value;
- private final String string;
- private static final Map<Integer, eObjectId> map;
- static {
- map = new HashMap<>();
- for (eObjectId e : values()) {
- map.put(Integer.valueOf(e.value), e);
- }
- }
- public static eObjectId getByValue(int value) {
- return map.get(Integer.valueOf(value));
- }
- public static eObjectId getByValue(byte value) {
- int intValue = (int)(value & 0x0F);
- return map.get(Integer.valueOf(intValue));
- }
- eObjectId(int value, String string) {
- this.value = value;
- this.string = string;
- }
- public int getValue() {
- return this.value;
- }
- public String toString() {
- return this.string;
- }
- }
|