litesoft
@ 821
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
package org.litesoft.GWT.client.pavsupport; import org.litesoft.core.typeutils.*; import com.google.gwt.place.shared.*; public abstract class IdPlace extends Place implements HasPlaceId { private String mPlaceId; protected IdPlace( Object pPlaceId ) { mPlaceId = Strings.assertNotNullNotEmpty( "PlaceId", pPlaceId.toString() ); } @Override public String getPlaceId() { return mPlaceId; } @Override public int hashCode() { return mPlaceId.hashCode(); } @Override public boolean equals( Object other ) { return (other == this) || ((other instanceof IdPlace) && equals( (IdPlace) other )); } public boolean equals( IdPlace them ) { return (this == them) || ((them != null) && (this.mPlaceId.equals( them.mPlaceId ))); } } |