*/
public static class NodeConnectorIDType {
private static final
- ConcurrentHashMap<String, ImmutablePair<Class, String>> compatibleType =
- new ConcurrentHashMap<String, ImmutablePair<Class, String>>();
+ ConcurrentHashMap<String, ImmutablePair<Class<? extends Object>, String>> compatibleType =
+ new ConcurrentHashMap<String, ImmutablePair<Class<? extends Object>, String>>();
/**
* Represent a special port pointing toward the controller,
* this is to send data packets toward the controller from
/**
* Special port describing ALL the ports in the system,
* should be used for flooding like mechanism but better
- * to be carefull with it
+ * to be careful with it
*/
public static String ALL = "ALL";
/**
* @return true if registered, false otherwise
*/
public static boolean registerIDType(String type,
- Class compatibleID,
+ Class<? extends Object> compatibleID,
String compatibleNode) {
if (compatibleType.get(type) != null) {
return false;
}
/**
- * return a NodeConnector from a string not containing explicitely
+ * return a NodeConnector from a string not containing explicitly
* the Node portion which has to be supplied as parameter
*
* @param str String to be parsed in a NodeConnector
* @param n Node to which the NodeConnector is attached
*
- * @return the NodeConnector if parse is succesfull, null otherwise
+ * @return the NodeConnector if parse is successful, null otherwise
*/
public static NodeConnector fromStringNoNode(String str, Node n) {
if (str == null) {