Remove is{List,Map}Type(Type) methods
[mdsal.git] / binding / mdsal-binding-model-ri / src / main / java / org / opendaylight / mdsal / binding / model / ri / Types.java
index b1e53087ca5e6a2c02d86a4a379ecf2725772321..81e0d42d99ec0a5902cfb84dba298b426e129bdd 100644 (file)
@@ -180,10 +180,6 @@ public final class Types {
         return MAP_TYPE.equals(type.getRawType());
     }
 
-    public static boolean isMapType(final Type type) {
-        return type instanceof ParameterizedType && isMapType((ParameterizedType) type);
-    }
-
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link Set}<V> with concrete type
      * of value.
@@ -204,6 +200,10 @@ public final class Types {
         return SET_TYPE_WILDCARD;
     }
 
+    public static boolean isSetType(final ParameterizedType type) {
+        return SET_TYPE.equals(type.getRawType());
+    }
+
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link List}<V> with concrete type
      * of value.
@@ -224,18 +224,10 @@ public final class Types {
         return LIST_TYPE_WILDCARD;
     }
 
-    public static boolean isSetType(final ParameterizedType type) {
-        return SET_TYPE.equals(type.getRawType());
-    }
-
     public static boolean isListType(final ParameterizedType type) {
         return LIST_TYPE.equals(type.getRawType());
     }
 
-    public static boolean isListType(final Type type) {
-        return type instanceof ParameterizedType && isListType((ParameterizedType) type);
-    }
-
     /**
      * Returns an instance of {@link ParameterizedType} describing the typed {@link ListenableFuture}<V>
      * with concrete type of value.