SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / protocol / enums / FrameType.java
1 package com.smartdevicelink.protocol.enums;\r
2 \r
3 import java.util.Vector;\r
4 \r
5 import com.smartdevicelink.util.ByteEnumer;\r
6 \r
7 public class FrameType extends ByteEnumer {\r
8 \r
9         private static Vector theList = new Vector();\r
10         public static Vector getList() { return theList; } \r
11         \r
12         byte i = 0x00;\r
13         \r
14         protected FrameType(byte value, String name) {super(value, name);}\r
15         public final static FrameType Control = new FrameType((byte)0x00, "Control");\r
16         public final static FrameType Single = new FrameType((byte)0x01, "Single");\r
17         public final static FrameType First = new FrameType((byte)0x02, "First");\r
18         public final static FrameType Consecutive = new FrameType((byte)0x03, "Consecutive");\r
19         \r
20         static {\r
21                 theList.addElement(Control);\r
22                 theList.addElement(Single);\r
23                 theList.addElement(First);\r
24                 theList.addElement(Consecutive);\r
25         }\r
26         \r
27         public static FrameType valueOf(byte passed) {\r
28                 return (FrameType) get(theList, passed);\r
29         }\r
30         \r
31         public static FrameType[] values() {\r
32                 return (FrameType[]) theList.toArray();\r
33         }\r
34 }\r