Explorar el Código

Add toString method to alias.

Change-Id: I908939518795c48ded0b110abf69434823a285a1
Reviewed-on: http://gerrit.dmdirc.com/3537
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
pull/1/head
Greg Holmes hace 10 años
padre
commit
e57e52ab01
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10
    0
      src/com/dmdirc/commandparser/aliases/Alias.java

+ 10
- 0
src/com/dmdirc/commandparser/aliases/Alias.java Ver fichero

@@ -92,4 +92,14 @@ public class Alias implements CommandInfo {
92 92
         return Objects.hashCode(name, minArguments, substitution, type);
93 93
     }
94 94
 
95
+    @Override
96
+    public String toString() {
97
+        return Objects.toStringHelper(this)
98
+                .add("name", name)
99
+                .add("minargs", minArguments)
100
+                .add("substitution", substitution)
101
+                .add("type", type)
102
+                .toString();
103
+    }
104
+
95 105
 }

Loading…
Cancelar
Guardar