提交 13336f72 authored 作者: noelgrandin's avatar noelgrandin

the AutoDetectDataType subclasses can all be static

上级 68f673ad
...@@ -405,7 +405,7 @@ public class ObjectDataType implements DataType { ...@@ -405,7 +405,7 @@ public class ObjectDataType implements DataType {
/** /**
* The base class for auto-detect data types. * The base class for auto-detect data types.
*/ */
abstract class AutoDetectDataType implements DataType { static abstract class AutoDetectDataType implements DataType {
protected final ObjectDataType base; protected final ObjectDataType base;
protected final int typeId; protected final int typeId;
...@@ -482,7 +482,7 @@ public class ObjectDataType implements DataType { ...@@ -482,7 +482,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for the null value * The type for the null value
*/ */
class NullType extends AutoDetectDataType { static class NullType extends AutoDetectDataType {
NullType(ObjectDataType base) { NullType(ObjectDataType base) {
super(base, TYPE_NULL); super(base, TYPE_NULL);
...@@ -524,7 +524,7 @@ public class ObjectDataType implements DataType { ...@@ -524,7 +524,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for boolean true and false. * The type for boolean true and false.
*/ */
class BooleanType extends AutoDetectDataType { static class BooleanType extends AutoDetectDataType {
BooleanType(ObjectDataType base) { BooleanType(ObjectDataType base) {
super(base, TYPE_BOOLEAN); super(base, TYPE_BOOLEAN);
...@@ -565,7 +565,7 @@ public class ObjectDataType implements DataType { ...@@ -565,7 +565,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for byte objects. * The type for byte objects.
*/ */
class ByteType extends AutoDetectDataType { static class ByteType extends AutoDetectDataType {
ByteType(ObjectDataType base) { ByteType(ObjectDataType base) {
super(base, TYPE_BYTE); super(base, TYPE_BYTE);
...@@ -606,7 +606,7 @@ public class ObjectDataType implements DataType { ...@@ -606,7 +606,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for character objects. * The type for character objects.
*/ */
class CharacterType extends AutoDetectDataType { static class CharacterType extends AutoDetectDataType {
CharacterType(ObjectDataType base) { CharacterType(ObjectDataType base) {
super(base, TYPE_CHAR); super(base, TYPE_CHAR);
...@@ -647,7 +647,7 @@ public class ObjectDataType implements DataType { ...@@ -647,7 +647,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for short objects. * The type for short objects.
*/ */
class ShortType extends AutoDetectDataType { static class ShortType extends AutoDetectDataType {
ShortType(ObjectDataType base) { ShortType(ObjectDataType base) {
super(base, TYPE_SHORT); super(base, TYPE_SHORT);
...@@ -688,7 +688,7 @@ public class ObjectDataType implements DataType { ...@@ -688,7 +688,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for integer objects. * The type for integer objects.
*/ */
class IntegerType extends AutoDetectDataType { static class IntegerType extends AutoDetectDataType {
IntegerType(ObjectDataType base) { IntegerType(ObjectDataType base) {
super(base, TYPE_INT); super(base, TYPE_INT);
...@@ -750,7 +750,7 @@ public class ObjectDataType implements DataType { ...@@ -750,7 +750,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for long objects. * The type for long objects.
*/ */
class LongType extends AutoDetectDataType { static class LongType extends AutoDetectDataType {
LongType(ObjectDataType base) { LongType(ObjectDataType base) {
super(base, TYPE_LONG); super(base, TYPE_LONG);
...@@ -816,7 +816,7 @@ public class ObjectDataType implements DataType { ...@@ -816,7 +816,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for float objects. * The type for float objects.
*/ */
class FloatType extends AutoDetectDataType { static class FloatType extends AutoDetectDataType {
FloatType(ObjectDataType base) { FloatType(ObjectDataType base) {
super(base, TYPE_FLOAT); super(base, TYPE_FLOAT);
...@@ -878,7 +878,7 @@ public class ObjectDataType implements DataType { ...@@ -878,7 +878,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for double objects. * The type for double objects.
*/ */
class DoubleType extends AutoDetectDataType { static class DoubleType extends AutoDetectDataType {
DoubleType(ObjectDataType base) { DoubleType(ObjectDataType base) {
super(base, TYPE_DOUBLE); super(base, TYPE_DOUBLE);
...@@ -942,7 +942,7 @@ public class ObjectDataType implements DataType { ...@@ -942,7 +942,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for BigInteger objects. * The type for BigInteger objects.
*/ */
class BigIntegerType extends AutoDetectDataType { static class BigIntegerType extends AutoDetectDataType {
BigIntegerType(ObjectDataType base) { BigIntegerType(ObjectDataType base) {
super(base, TYPE_BIG_INTEGER); super(base, TYPE_BIG_INTEGER);
...@@ -1008,7 +1008,7 @@ public class ObjectDataType implements DataType { ...@@ -1008,7 +1008,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for BigDecimal objects. * The type for BigDecimal objects.
*/ */
class BigDecimalType extends AutoDetectDataType { static class BigDecimalType extends AutoDetectDataType {
BigDecimalType(ObjectDataType base) { BigDecimalType(ObjectDataType base) {
super(base, TYPE_BIG_DECIMAL); super(base, TYPE_BIG_DECIMAL);
...@@ -1086,7 +1086,7 @@ public class ObjectDataType implements DataType { ...@@ -1086,7 +1086,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for string objects. * The type for string objects.
*/ */
class StringType extends AutoDetectDataType { static class StringType extends AutoDetectDataType {
StringType(ObjectDataType base) { StringType(ObjectDataType base) {
super(base, TYPE_STRING); super(base, TYPE_STRING);
...@@ -1140,7 +1140,7 @@ public class ObjectDataType implements DataType { ...@@ -1140,7 +1140,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for UUID objects. * The type for UUID objects.
*/ */
class UUIDType extends AutoDetectDataType { static class UUIDType extends AutoDetectDataType {
UUIDType(ObjectDataType base) { UUIDType(ObjectDataType base) {
super(base, TYPE_UUID); super(base, TYPE_UUID);
...@@ -1184,7 +1184,7 @@ public class ObjectDataType implements DataType { ...@@ -1184,7 +1184,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for java.util.Date objects. * The type for java.util.Date objects.
*/ */
class DateType extends AutoDetectDataType { static class DateType extends AutoDetectDataType {
DateType(ObjectDataType base) { DateType(ObjectDataType base) {
super(base, TYPE_DATE); super(base, TYPE_DATE);
...@@ -1227,7 +1227,7 @@ public class ObjectDataType implements DataType { ...@@ -1227,7 +1227,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for object arrays. * The type for object arrays.
*/ */
class ObjectArrayType extends AutoDetectDataType { static class ObjectArrayType extends AutoDetectDataType {
private final ObjectDataType elementType = new ObjectDataType(); private final ObjectDataType elementType = new ObjectDataType();
...@@ -1472,7 +1472,7 @@ public class ObjectDataType implements DataType { ...@@ -1472,7 +1472,7 @@ public class ObjectDataType implements DataType {
/** /**
* The type for serialized objects. * The type for serialized objects.
*/ */
class SerializedObjectType extends AutoDetectDataType { static class SerializedObjectType extends AutoDetectDataType {
private int averageSize = 10000; private int averageSize = 10000;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论