litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/eventbus/client/EventSimpleSubscriptionStructure.java
|
@@ -1,28 +1,28 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.eventbus.client; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
5 |
|
- |
|
6 |
|
- |
public class EventSimpleSubscriptionStructure implements EventSubscriptionStructure { |
7 |
|
- |
private String mSubscribeWith; |
8 |
|
- |
private EventPackageListener mEventPackageListener; |
9 |
|
- |
|
10 |
|
- |
public EventSimpleSubscriptionStructure( String pSubscribeWith, EventPackageListener pEventPackageListener ) { |
11 |
|
- |
Objects.assertNotNull( "SubscribeWith", pSubscribeWith ); |
12 |
|
- |
Objects.assertNotNull( "EventListener", pEventPackageListener ); |
13 |
|
- |
mSubscribeWith = pSubscribeWith; |
14 |
|
- |
mEventPackageListener = pEventPackageListener; |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
public String getSubscribeWith() { |
18 |
|
- |
return mSubscribeWith; |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public EventPackageListener getEventListener() { |
22 |
|
- |
return mEventPackageListener; |
23 |
|
- |
} |
24 |
|
- |
|
25 |
|
- |
public String toString() { |
26 |
|
- |
return getSubscribeWith(); |
27 |
|
- |
} |
28 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.eventbus.client; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
5 |
+ |
|
|
6 |
+ |
public class EventSimpleSubscriptionStructure implements EventSubscriptionStructure { |
|
7 |
+ |
private String mSubscribeWith; |
|
8 |
+ |
private EventPackageListener mEventPackageListener; |
|
9 |
+ |
|
|
10 |
+ |
public EventSimpleSubscriptionStructure( String pSubscribeWith, EventPackageListener pEventPackageListener ) { |
|
11 |
+ |
Confirm.isNotNull( "SubscribeWith", pSubscribeWith ); |
|
12 |
+ |
Confirm.isNotNull( "EventListener", pEventPackageListener ); |
|
13 |
+ |
mSubscribeWith = pSubscribeWith; |
|
14 |
+ |
mEventPackageListener = pEventPackageListener; |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public String getSubscribeWith() { |
|
18 |
+ |
return mSubscribeWith; |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public EventPackageListener getEventListener() { |
|
22 |
+ |
return mEventPackageListener; |
|
23 |
+ |
} |
|
24 |
+ |
|
|
25 |
+ |
public String toString() { |
|
26 |
+ |
return getSubscribeWith(); |
|
27 |
+ |
} |
|
28 |
+ |
} |