Subversion Repository Public Repository

litesoft

Diff Revisions 712 vs 720 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/pavsupport/IdPlace.java

Diff revisions: vs.
  @@ -1,6 +1,6 @@
1 1 package org.litesoft.GWT.client.pavsupport;
2 2
3 - import org.litesoft.GWT.client.pavsupport.*;
3 + import org.litesoft.core.util.*;
4 4
5 5 import com.google.gwt.place.shared.*;
6 6
  @@ -10,7 +10,7 @@
10 10
11 11 protected IdPlace( Object pPlaceId )
12 12 {
13 - mPlaceId = pPlaceId.toString();
13 + mPlaceId = UtilsCommon.assertNotNullNotEmpty( "PlaceId", pPlaceId.toString() );
14 14 }
15 15
16 16 @Override
  @@ -18,4 +18,21 @@
18 18 {
19 19 return mPlaceId;
20 20 }
21 +
22 + @Override
23 + public int hashCode()
24 + {
25 + return mPlaceId.hashCode();
26 + }
27 +
28 + @Override
29 + public boolean equals( Object other )
30 + {
31 + return (other == this) || ((other instanceof IdPlace) && equals( (IdPlace) other ));
32 + }
33 +
34 + public boolean equals( IdPlace them )
35 + {
36 + return (this == them) || ((them != null) && (this.mPlaceId.equals( them.mPlaceId )));
37 + }
21 38 }