Skip to content

Method: toString()

1: package model.definition;
2:
3: /**
4: * Representation for definitions without an Opt.
5: *
6: * @author HFW410RA - Philipp Rammos
7: *
8: */
9: public class HasnotOpt implements VariableOptReference {
10:
11:         @Override
12:         public boolean equals(final Object obj) {
13:                 return obj instanceof HasnotOpt;
14:         }
15:
16:         @Override
17:         public int hashCode() {
18:                 return this.getClass().hashCode();
19:         }
20:
21:         @Override
22:         public String toString() {
23:                 return basic.PrinterConstants.MINUS;
24:         }
25: }