import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.TreeMap;
import java.util.function.Consumer;
import java.util.function.Supplier;
public Pin getPin(String name)
{
- return pinsByName.get(name);
+ Pin pin = pinsByName.get(name);
+ if (pin == null)
+ throw new IllegalArgumentException("No pin with the name " + name);
+ return pin;
}
// @formatter:off
{
return identifierDelegate.get();
}
+
+ @SuppressWarnings("static-method")
+ public Map<String, Object> getInstantiationParameters()
+ {
+ return new TreeMap<>();
+ }
}
\ No newline at end of file