Skip to content

Method: AbstractOption()

1: package generator.option;
2:
3: /**
4: *
5: * @author Muri
6: *
7: */
8: public class AbstractOption { // NOPMD the methods are needed!
9:
10:         /**
11:          *
12:          * @return false
13:          */
14:         public boolean isDevtypeOption() {
15:                 return Boolean.FALSE;
16:         }
17:
18:         /**
19:          *
20:          * @return false
21:          */
22:         public boolean isFlagsOption() {
23:                 return Boolean.FALSE;
24:         }
25:
26:         /**
27:          *
28:          * @return false
29:          */
30:         public boolean isGidOption() {
31:                 return Boolean.FALSE;
32:         }
33:
34:         /**
35:          *
36:          * @return false
37:          */
38:         public boolean isLinktargetOption() {
39:                 return Boolean.FALSE;
40:         }
41:
42:         /**
43:          *
44:          * @return false
45:          */
46:         public boolean isMajorOption() {
47:                 return Boolean.FALSE;
48:         }
49:
50:         /**
51:          *
52:          * @return false
53:          */
54:         public boolean isMinorOption() {
55:                 return Boolean.FALSE;
56:         }
57:
58:         /**
59:          *
60:          * @return false
61:          */
62:         public boolean isModeOption() {
63:                 return Boolean.FALSE;
64:         }
65:
66:         /**
67:          *
68:          * @return false
69:          */
70:         public boolean isNameOption() {
71:                 return Boolean.FALSE;
72:         }
73:
74:         /**
75:          *
76:          * @return false
77:          */
78:         public boolean isTypeOption() {
79:                 return Boolean.FALSE;
80:         }
81:
82:         /**
83:          *
84:          * @return false
85:          */
86:         public boolean isUidOption() {
87:                 return Boolean.FALSE;
88:         }
89:
90:         @Override
91:         public int hashCode() {
92:                 return this.getClass().toString().hashCode();
93:
94:         }
95:
96:         @Override
97:         public boolean equals(final Object other) {
98:                 boolean result = false;
99:                 if (other == null) {
100:                         result = false;
101:                 } else if (other == this) {
102:                         result = true;
103:                 } else if (!(other instanceof AbstractOption)) { // NOPMD ! is okay here!
104:                         result = false;
105:                 } else {
106:                         final AbstractOption oAO = (AbstractOption) other;
107:                         result = oAO.hashCode() == other.hashCode();
108:                 }
109:                 return result;
110:         }
111: }