litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/IdPlace.java
|
@@ -1,32 +1,32 @@ |
1 |
|
- |
package org.litesoft.GWT.client.pavsupport; |
2 |
|
- |
|
3 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
4 |
|
- |
|
5 |
|
- |
import com.google.gwt.place.shared.*; |
6 |
|
- |
|
7 |
|
- |
public abstract class IdPlace extends Place implements HasPlaceId { |
8 |
|
- |
private String mPlaceId; |
9 |
|
- |
|
10 |
|
- |
protected IdPlace( Object pPlaceId ) { |
11 |
|
- |
mPlaceId = Strings.assertNotNullNotEmpty( "PlaceId", pPlaceId.toString() ); |
12 |
|
- |
} |
13 |
|
- |
|
14 |
|
- |
@Override |
15 |
|
- |
public String getPlaceId() { |
16 |
|
- |
return mPlaceId; |
17 |
|
- |
} |
18 |
|
- |
|
19 |
|
- |
@Override |
20 |
|
- |
public int hashCode() { |
21 |
|
- |
return mPlaceId.hashCode(); |
22 |
|
- |
} |
23 |
|
- |
|
24 |
|
- |
@Override |
25 |
|
- |
public boolean equals( Object other ) { |
26 |
|
- |
return (other == this) || ((other instanceof IdPlace) && equals( (IdPlace) other )); |
27 |
|
- |
} |
28 |
|
- |
|
29 |
|
- |
public boolean equals( IdPlace them ) { |
30 |
|
- |
return (this == them) || ((them != null) && (this.mPlaceId.equals( them.mPlaceId ))); |
31 |
|
- |
} |
32 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.pavsupport; |
|
2 |
+ |
|
|
3 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
4 |
+ |
|
|
5 |
+ |
import com.google.gwt.place.shared.*; |
|
6 |
+ |
|
|
7 |
+ |
public abstract class IdPlace extends Place implements HasPlaceId { |
|
8 |
+ |
private String mPlaceId; |
|
9 |
+ |
|
|
10 |
+ |
protected IdPlace( Object pPlaceId ) { |
|
11 |
+ |
mPlaceId = Confirm.significant( "PlaceId", pPlaceId.toString() ); |
|
12 |
+ |
} |
|
13 |
+ |
|
|
14 |
+ |
@Override |
|
15 |
+ |
public String getPlaceId() { |
|
16 |
+ |
return mPlaceId; |
|
17 |
+ |
} |
|
18 |
+ |
|
|
19 |
+ |
@Override |
|
20 |
+ |
public int hashCode() { |
|
21 |
+ |
return mPlaceId.hashCode(); |
|
22 |
+ |
} |
|
23 |
+ |
|
|
24 |
+ |
@Override |
|
25 |
+ |
public boolean equals( Object other ) { |
|
26 |
+ |
return (other == this) || ((other instanceof IdPlace) && equals( (IdPlace) other )); |
|
27 |
+ |
} |
|
28 |
+ |
|
|
29 |
+ |
public boolean equals( IdPlace them ) { |
|
30 |
+ |
return (this == them) || ((them != null) && (this.mPlaceId.equals( them.mPlaceId ))); |
|
31 |
+ |
} |
|
32 |
+ |
} |