projects
/
sonitus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make controller’s value’s type variable.
[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
ae815cb
..
cb853a3
100644
(file)
--- a/
src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
+++ b/
src/main/java/net/pterodactylus/sonitus/data/controller/Switch.java
@@
-22,7
+22,7
@@
package net.pterodactylus.sonitus.data.controller;
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public abstract class Switch extends AbstractController {
+public abstract class Switch extends AbstractController
<Boolean>
{
/** Creates a new switch that is off. */
public Switch() {
/** Creates a new switch that is off. */
public Switch() {
@@
-36,7
+36,7
@@
public abstract class Switch extends AbstractController {
* The state of the switch
*/
public Switch(boolean active) {
* The state of the switch
*/
public Switch(boolean active) {
- super(
0, 1, false, active ? 1 : 0
);
+ super(
false, true, false, active
);
}
}
}
}