projects
/
sonitus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add name to controllers.
[sonitus.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sonitus
/
data
/
controller
/
Switch.java
diff --git
a/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
b/src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
index
cb853a3
..
1b997d4
100644
(file)
--- a/
src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
+++ b/
src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
@@
-24,19
+24,26
@@
package net.pterodactylus.sonitus.data.controller;
*/
public abstract class Switch extends AbstractController<Boolean> {
*/
public abstract class Switch extends AbstractController<Boolean> {
- /** Creates a new switch that is off. */
- public Switch() {
- this(false);
+ /**
+ * Creates a new switch that is off.
+ *
+ * @param name
+ * The name of the switch
+ */
+ public Switch(String name) {
+ this(name, false);
}
/**
* Creates a new switch with the given state.
*
}
/**
* Creates a new switch with the given state.
*
+ * @param name
+ * The name of the switch
* @param active
* The state of the switch
*/
* @param active
* The state of the switch
*/
- public Switch(boolean active) {
- super(false, true, false, active);
+ public Switch(
String name,
boolean active) {
+ super(
name,
false, true, false, active);
}
}
}
}