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
35
36
37
38
39
40
41
42
43
package org.litesoft.sandbox.multimodule.foundation.client.places;

import org.litesoft.sandbox.infrastructure.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.*;
import org.litesoft.sandbox.multimodule.foundation.client.support.*;

public class BackPlace extends IdPlace
{
    private static final Places ID = Places.Back;

    private Long luckyId;

    public BackPlace( Long data )
    {
        super( ID );
        this.luckyId = data;
    }

    public Long getLuckyId()
    {
        return luckyId;
    }

    public static class Tokenizer extends IdTokenizer<BackPlace>
    {
        public Tokenizer()
        {
            super( ID );
        }

        @Override
        public String getToken( BackPlace place )
        {
            return LuckyIdCodec.encode( place.getLuckyId() );
        }

        @Override
        public BackPlace getPlace( String data )
        {
            return new BackPlace( LuckyIdCodec.decode( data ) );
        }
    }
}

Commits for litesoft/trunk/GWT_Sandbox/MultiModule/foundation/src/org/litesoft/sandbox/multimodule/foundation/client/places/BackPlace.java

Diff revisions: vs.
Revision Author Commited Message
541 GeorgeS picture GeorgeS Mon 03 Oct, 2011 04:25:50 +0000