1 package com.smartdevicelink.protocol.enums;
\r
3 import java.util.Vector;
\r
5 import com.smartdevicelink.util.ByteEnumer;
\r
7 public class FrameType extends ByteEnumer {
\r
9 private static Vector theList = new Vector();
\r
10 public static Vector getList() { return theList; }
\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
21 theList.addElement(Control);
\r
22 theList.addElement(Single);
\r
23 theList.addElement(First);
\r
24 theList.addElement(Consecutive);
\r
27 public static FrameType valueOf(byte passed) {
\r
28 return (FrameType) get(theList, passed);
\r
31 public static FrameType[] values() {
\r
32 return (FrameType[]) theList.toArray();
\r