Last change
on this file since 548 was
548,
checked in by sherbold, 12 years ago
|
- countless adaptations throughout nearly all components to remove errors introduced due to the refactoring of the event core
|
-
Property svn:mime-type set to
text/plain
|
File size:
815 bytes
|
Line | |
---|
1 | package de.ugoe.cs.quest.usageprofiles.mock; |
---|
2 | |
---|
3 | import de.ugoe.cs.quest.eventcore.IEventType; |
---|
4 | |
---|
5 | public class StringEventType implements IEventType { |
---|
6 | /** */ |
---|
7 | private static final long serialVersionUID = 1L; |
---|
8 | String str; |
---|
9 | |
---|
10 | public StringEventType(String str) { |
---|
11 | if (str == null) { |
---|
12 | throw new AssertionError( |
---|
13 | "illegal use of mock StringEventType: str must nut be null"); |
---|
14 | } |
---|
15 | this.str = str; |
---|
16 | } |
---|
17 | |
---|
18 | public String getName() { |
---|
19 | return "StringEventType"; |
---|
20 | } |
---|
21 | |
---|
22 | @Override |
---|
23 | public boolean equals(Object other) { |
---|
24 | if (other == this) { |
---|
25 | return true; |
---|
26 | } |
---|
27 | if (other instanceof StringEventType) { |
---|
28 | return str.equals(((StringEventType) other).str); |
---|
29 | } |
---|
30 | return false; |
---|
31 | } |
---|
32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.