Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/GWT_Sandbox/MultiModule/foundation/src/org/litesoft/sandbox/multimodule/foundation/client/places/RightPlace.java

Diff revisions: vs.
  @@ -1,36 +1,36 @@
1 - package org.litesoft.sandbox.multimodule.foundation.client.places;
2 -
3 - import org.litesoft.sandbox.infrastructure.client.*;
4 - import org.litesoft.sandbox.multimodule.foundation.client.*;
5 - import org.litesoft.sandbox.multimodule.foundation.client.support.*;
6 -
7 - public class RightPlace extends IdPlace {
8 - private static final Places ID = Places.Right;
9 -
10 - private Long luckyId;
11 -
12 - public RightPlace( Long data ) {
13 - super( ID );
14 - this.luckyId = data;
15 - }
16 -
17 - public Long getLuckyId() {
18 - return luckyId;
19 - }
20 -
21 - public static class Tokenizer extends IdTokenizer<RightPlace> {
22 - public Tokenizer() {
23 - super( ID );
24 - }
25 -
26 - @Override
27 - public String getToken( RightPlace place ) {
28 - return LuckyIdCodec.encode( place.getLuckyId() );
29 - }
30 -
31 - @Override
32 - public RightPlace getPlace( String data ) {
33 - return new RightPlace( LuckyIdCodec.decode( data ) );
34 - }
35 - }
36 - }
1 + package org.litesoft.sandbox.multimodule.foundation.client.places;
2 +
3 + import org.litesoft.sandbox.infrastructure.client.*;
4 + import org.litesoft.sandbox.multimodule.foundation.client.*;
5 + import org.litesoft.sandbox.multimodule.foundation.client.support.*;
6 +
7 + public class RightPlace extends IdPlace {
8 + private static final Places ID = Places.Right;
9 +
10 + private Long luckyId;
11 +
12 + public RightPlace( Long data ) {
13 + super( ID );
14 + this.luckyId = data;
15 + }
16 +
17 + public Long getLuckyId() {
18 + return luckyId;
19 + }
20 +
21 + public static class Tokenizer extends IdTokenizer<RightPlace> {
22 + public Tokenizer() {
23 + super( ID );
24 + }
25 +
26 + @Override
27 + public String getToken( RightPlace place ) {
28 + return LuckyIdCodec.encode( place.getLuckyId() );
29 + }
30 +
31 + @Override
32 + public RightPlace getPlace( String data ) {
33 + return new RightPlace( LuckyIdCodec.decode( data ) );
34 + }
35 + }
36 + }