Subversion Repository Public Repository

litesoft

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
package com.temp.foundation.client.pavment;

import com.google.gwt.place.shared.*;
import com.temp.common.shared.utils.*;

public abstract class IdPlace extends Place implements HasPlaceId {
    private String mPlaceId;

    protected IdPlace( Object pPlaceId ) {
        mPlaceId = pPlaceId.toString();
    }

    @Override
    public final String getPlaceId() {
        return mPlaceId;
    }

    @Override
    public final int hashCode() {
        return mPlaceId.hashCode();
    }

    @Override
    public final boolean equals( Object obj ) {
        return (this == obj) || ((obj != null) && //
                                 this.getClass().equals( obj.getClass() ) && //
                                 ObjectUtils.areEqual( this.mPlaceId, ((IdPlace) obj).mPlaceId ) && //
                                 subFieldsEqual( obj ));
    }

    protected boolean subFieldsEqual( Object obj ) {
        return true;
    }
}

Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/foundation/client/pavment/IdPlace.java

Diff revisions: vs.
Revision Author Commited Message
965 GeorgeS picture GeorgeS Fri 01 Aug, 2014 03:20:35 +0000

!