152 if (getLine() == null) {
153 sLine = "null";
154 } else {
155 sLine = getLine().toString();
156 }
157 return new String(sType + "event from line " + sLine);
158 }
159
160 /**
161 * The LineEvent.Type inner class identifies what kind of event occurred on
162 * a line. Static instances are provided for the common types (OPEN, CLOSE,
163 * START, and STOP).
164 *
165 * @see LineEvent#getType()
166 */
167 public static class Type {
168
169 /**
170 * Type name.
171 */
172 // $$kk: 03.25.99: why can't this be final??
173 private /*final*/ String name;
174
175 /**
176 * Constructs a new event type.
177 *
178 * @param name name of the type
179 */
180 protected Type(String name) {
181 this.name = name;
182 }
183
184 //$$fb 2002-11-26: fix for 4695001: SPEC: description of equals() method contains typo
185
186 /**
187 * Indicates whether the specified object is equal to this event type,
188 * returning {@code true} if the objects are identical.
189 *
190 * @param obj the reference object with which to compare
191 * @return {@code true} if this event type is the same as {@code obj};
192 * {@code false} otherwise
193 */
|
152 if (getLine() == null) {
153 sLine = "null";
154 } else {
155 sLine = getLine().toString();
156 }
157 return new String(sType + "event from line " + sLine);
158 }
159
160 /**
161 * The LineEvent.Type inner class identifies what kind of event occurred on
162 * a line. Static instances are provided for the common types (OPEN, CLOSE,
163 * START, and STOP).
164 *
165 * @see LineEvent#getType()
166 */
167 public static class Type {
168
169 /**
170 * Type name.
171 */
172 private final String name;
173
174 /**
175 * Constructs a new event type.
176 *
177 * @param name name of the type
178 */
179 protected Type(String name) {
180 this.name = name;
181 }
182
183 //$$fb 2002-11-26: fix for 4695001: SPEC: description of equals() method contains typo
184
185 /**
186 * Indicates whether the specified object is equal to this event type,
187 * returning {@code true} if the objects are identical.
188 *
189 * @param obj the reference object with which to compare
190 * @return {@code true} if this event type is the same as {@code obj};
191 * {@code false} otherwise
192 */
|