SDL_Android/SmartDeviceLinkAndroidProxy - added the correct version of the proxy
[profile/ivi/smartdevicelink.git] / SDL_Android / SmartDeviceLinkProxyAndroid / src / com / smartdevicelink / util / ByteEnumer.java
index 6ccdebe..3730be6 100755 (executable)
@@ -1,55 +1,52 @@
-//
-// Copyright (c) 2013 Ford Motor Company
-//
-package com.smartdevicelink.util;
-
-import java.util.Enumeration;
-import java.util.Vector;
-
-public abstract class ByteEnumer {     
-       
-       protected ByteEnumer(byte value, String name) {
-               this.value = value;
-               this.name = name;
-       }
-       
-       private byte value;
-       private String name;
-       
-       public byte getValue() { return value; }
-       public String getName() { return name; }
-       
-       public boolean equals(ByteEnumer other) {
-               return name == other.getName();
-       }
-       
-       public boolean eq(ByteEnumer other) {
-               return equals(other);
-       }
-               
-       public byte value() {
-               return value;
-       }
-       
-       public static ByteEnumer get(Vector theList, byte value) {
-               Enumeration enumer = theList.elements();
-               while (enumer.hasMoreElements()) {
-                       ByteEnumer current = (ByteEnumer)enumer.nextElement();
-                       if (current.getValue() == value) {
-                               return current;
-                       }
-               }
-               return null;
-       }
-       
-       public static ByteEnumer get(Vector theList, String name) {
-               Enumeration enumer = theList.elements();
-               while (enumer.hasMoreElements()) {
-                       ByteEnumer current = (ByteEnumer)enumer.nextElement();
-                       if (current.getName().equals(name)) {
-                               return current;
-                       }
-               }
-               return null;
-       }
-}
+package com.smartdevicelink.util;\r
+\r
+import java.util.Enumeration;\r
+import java.util.Vector;\r
+\r
+public abstract class ByteEnumer {     \r
+       \r
+       protected ByteEnumer(byte value, String name) {\r
+               this.value = value;\r
+               this.name = name;\r
+       }\r
+       \r
+       private byte value;\r
+       private String name;\r
+       \r
+       public byte getValue() { return value; }\r
+       public String getName() { return name; }\r
+       \r
+       public boolean equals(ByteEnumer other) {\r
+               return name == other.getName();\r
+       }\r
+       \r
+       public boolean eq(ByteEnumer other) {\r
+               return equals(other);\r
+       }\r
+               \r
+       public byte value() {\r
+               return value;\r
+       }\r
+       \r
+       public static ByteEnumer get(Vector theList, byte value) {\r
+               Enumeration enumer = theList.elements();\r
+               while (enumer.hasMoreElements()) {\r
+                       ByteEnumer current = (ByteEnumer)enumer.nextElement();\r
+                       if (current.getValue() == value) {\r
+                               return current;\r
+                       }\r
+               }\r
+               return null;\r
+       }\r
+       \r
+       public static ByteEnumer get(Vector theList, String name) {\r
+               Enumeration enumer = theList.elements();\r
+               while (enumer.hasMoreElements()) {\r
+                       ByteEnumer current = (ByteEnumer)enumer.nextElement();\r
+                       if (current.getName().equals(name)) {\r
+                               return current;\r
+                       }\r
+               }\r
+               return null;\r
+       }\r
+}\r