liblldp: final parameters
[controller.git] / opendaylight / commons / liblldp / src / main / java / org / opendaylight / controller / liblldp / EtherTypes.java
index de5834faee6a7988e9296f8b51f353b8160a4d53..84f47da8a83a4ff05f75e75e8c004d7d0d3cce44 100644 (file)
@@ -32,7 +32,7 @@ public enum EtherTypes {
     private String description;
     private int number;
 
-    EtherTypes(String description, int number) {
+    EtherTypes(final String description, final int number) {
         this.description = description;
         this.number = number;
     }
@@ -49,19 +49,19 @@ public enum EtherTypes {
         return ((Integer) number).shortValue();
     }
 
-    public static String getEtherTypeName(int number) {
+    public static String getEtherTypeName(final int number) {
         return getEtherTypeInternal(number);
     }
 
-    public static String getEtherTypeName(short number) {
+    public static String getEtherTypeName(final short number) {
         return getEtherTypeInternal(number & 0xffff);
     }
 
-    public static String getEtherTypeName(byte number) {
+    public static String getEtherTypeName(final byte number) {
         return getEtherTypeInternal(number & 0xff);
     }
 
-    private static String getEtherTypeInternal(int number) {
+    private static String getEtherTypeInternal(final int number) {
         for (EtherTypes type : EtherTypes.values()) {
             if (type.number == number) {
                 return type.toString();
@@ -70,7 +70,7 @@ public enum EtherTypes {
         return "0x" + Integer.toHexString(number);
     }
 
-    public static short getEtherTypeNumberShort(String name) {
+    public static short getEtherTypeNumberShort(final String name) {
         if (name.matches(regexNumberString)) {
             return Short.valueOf(name);
         }
@@ -82,7 +82,7 @@ public enum EtherTypes {
         return 0;
     }
 
-    public static int getEtherTypeNumberInt(String name) {
+    public static int getEtherTypeNumberInt(final String name) {
         if (name.matches(regexNumberString)) {
             return Integer.valueOf(name);
         }
@@ -102,7 +102,7 @@ public enum EtherTypes {
         return ethertypesList;
     }
 
-    public static EtherTypes loadFromString(String string) {
+    public static EtherTypes loadFromString(final String string) {
         int intType = Integer.parseInt(string);
 
         for (EtherTypes type : EtherTypes.values()) {