Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/com/google/gwt/gen2/table/client/property/ColumnProperty.java

Diff revisions: vs.
  @@ -1,49 +1,49 @@
1 - /*
2 - * Copyright 2009 Google Inc.
3 - *
4 - * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 - * use this file except in compliance with the License. You may obtain a copy of
6 - * the License at
7 - *
8 - * http://www.apache.org/licenses/LICENSE-2.0
9 - *
10 - * Unless required by applicable law or agreed to in writing, software
11 - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 - * License for the specific language governing permissions and limitations under
14 - * the License.
15 - */
16 - package com.google.gwt.gen2.table.client.property;
17 -
18 - /**
19 - * A simple property of a column.
20 - */
21 - public abstract class ColumnProperty {
22 - /**
23 - * Type class used to register properties.
24 - */
25 - public abstract static class Type<P extends ColumnProperty> {
26 - private static int nextHashCode;
27 - private final int index;
28 -
29 - /**
30 - * Construct a new type.
31 - */
32 - public Type() {
33 - index = ++nextHashCode;
34 - }
35 -
36 - /**
37 - * Get the default property value of this type. This method should never
38 - * return null.
39 - *
40 - * @return the default (non null) property value
41 - */
42 - public abstract P getDefault();
43 -
44 - @Override
45 - public final int hashCode() {
46 - return index;
47 - }
48 - }
49 - }
1 + /*
2 + * Copyright 2009 Google Inc.
3 + *
4 + * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 + * use this file except in compliance with the License. You may obtain a copy of
6 + * the License at
7 + *
8 + * http://www.apache.org/licenses/LICENSE-2.0
9 + *
10 + * Unless required by applicable law or agreed to in writing, software
11 + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 + * License for the specific language governing permissions and limitations under
14 + * the License.
15 + */
16 + package com.google.gwt.gen2.table.client.property;
17 +
18 + /**
19 + * A simple property of a column.
20 + */
21 + public abstract class ColumnProperty {
22 + /**
23 + * Type class used to register properties.
24 + */
25 + public abstract static class Type<P extends ColumnProperty> {
26 + private static int nextHashCode;
27 + private final int index;
28 +
29 + /**
30 + * Construct a new type.
31 + */
32 + public Type() {
33 + index = ++nextHashCode;
34 + }
35 +
36 + /**
37 + * Get the default property value of this type. This method should never
38 + * return null.
39 + *
40 + * @return the default (non null) property value
41 + */
42 + public abstract P getDefault();
43 +
44 + @Override
45 + public final int hashCode() {
46 + return index;
47 + }
48 + }
49 + }