Skip to content

Commit

Permalink
HSEARCH-4331 Make PropertyTypeDescriptors singletons
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and fax4ever committed Oct 6, 2021
1 parent acf7069 commit ba5489a
Show file tree
Hide file tree
Showing 44 changed files with 172 additions and 86 deletions.
Expand Up @@ -19,7 +19,9 @@

public class BigDecimalPropertyTypeDescriptor extends PropertyTypeDescriptor<BigDecimal> {

BigDecimalPropertyTypeDescriptor() {
public static final BigDecimalPropertyTypeDescriptor INSTANCE = new BigDecimalPropertyTypeDescriptor();

private BigDecimalPropertyTypeDescriptor() {
super( BigDecimal.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class BigIntegerPropertyTypeDescriptor extends PropertyTypeDescriptor<BigInteger> {

BigIntegerPropertyTypeDescriptor() {
public static final BigIntegerPropertyTypeDescriptor INSTANCE = new BigIntegerPropertyTypeDescriptor();

private BigIntegerPropertyTypeDescriptor() {
super( BigInteger.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedBooleanPropertyTypeDescriptor extends PropertyTypeDescriptor<Boolean> {

BoxedBooleanPropertyTypeDescriptor() {
public static final BoxedBooleanPropertyTypeDescriptor INSTANCE = new BoxedBooleanPropertyTypeDescriptor();

private BoxedBooleanPropertyTypeDescriptor() {
super( Boolean.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedBytePropertyTypeDescriptor extends PropertyTypeDescriptor<Byte> {

BoxedBytePropertyTypeDescriptor() {
public static final BoxedBytePropertyTypeDescriptor INSTANCE = new BoxedBytePropertyTypeDescriptor();

private BoxedBytePropertyTypeDescriptor() {
super( Byte.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedCharacterPropertyTypeDescriptor extends PropertyTypeDescriptor<Character> {

protected BoxedCharacterPropertyTypeDescriptor() {
public static final BoxedCharacterPropertyTypeDescriptor INSTANCE = new BoxedCharacterPropertyTypeDescriptor();

private BoxedCharacterPropertyTypeDescriptor() {
super( Character.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedDoublePropertyTypeDescriptor extends PropertyTypeDescriptor<Double> {

BoxedDoublePropertyTypeDescriptor() {
public static final BoxedDoublePropertyTypeDescriptor INSTANCE = new BoxedDoublePropertyTypeDescriptor();

private BoxedDoublePropertyTypeDescriptor() {
super( Double.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedFloatPropertyTypeDescriptor extends PropertyTypeDescriptor<Float> {

BoxedFloatPropertyTypeDescriptor() {
public static final BoxedFloatPropertyTypeDescriptor INSTANCE = new BoxedFloatPropertyTypeDescriptor();

private BoxedFloatPropertyTypeDescriptor() {
super( Float.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedIntegerPropertyTypeDescriptor extends PropertyTypeDescriptor<Integer> {

BoxedIntegerPropertyTypeDescriptor() {
public static final BoxedIntegerPropertyTypeDescriptor INSTANCE = new BoxedIntegerPropertyTypeDescriptor();

private BoxedIntegerPropertyTypeDescriptor() {
super( Integer.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedLongPropertyTypeDescriptor extends PropertyTypeDescriptor<Long> {

BoxedLongPropertyTypeDescriptor() {
public static final BoxedLongPropertyTypeDescriptor INSTANCE = new BoxedLongPropertyTypeDescriptor();

private BoxedLongPropertyTypeDescriptor() {
super( Long.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class BoxedShortPropertyTypeDescriptor extends PropertyTypeDescriptor<Short> {

BoxedShortPropertyTypeDescriptor() {
public static final BoxedShortPropertyTypeDescriptor INSTANCE = new BoxedShortPropertyTypeDescriptor();

private BoxedShortPropertyTypeDescriptor() {
super( Short.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class DurationPropertyTypeDescriptor extends PropertyTypeDescriptor<Duration> {

DurationPropertyTypeDescriptor() {
public static final DurationPropertyTypeDescriptor INSTANCE = new DurationPropertyTypeDescriptor();

private DurationPropertyTypeDescriptor() {
super( Duration.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class EnumPropertyTypeDescriptor extends PropertyTypeDescriptor<EnumPropertyTypeDescriptor.MyEnum> {

EnumPropertyTypeDescriptor() {
public static final EnumPropertyTypeDescriptor INSTANCE = new EnumPropertyTypeDescriptor();

private EnumPropertyTypeDescriptor() {
super( MyEnum.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class GeoPointPropertyTypeDescriptor extends PropertyTypeDescriptor<GeoPoint> {

GeoPointPropertyTypeDescriptor() {
public static final GeoPointPropertyTypeDescriptor INSTANCE = new GeoPointPropertyTypeDescriptor();

private GeoPointPropertyTypeDescriptor() {
super( GeoPoint.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class InstantPropertyTypeDescriptor extends PropertyTypeDescriptor<Instant> {

InstantPropertyTypeDescriptor() {
public static final InstantPropertyTypeDescriptor INSTANCE = new InstantPropertyTypeDescriptor();

private InstantPropertyTypeDescriptor() {
super( Instant.class );
}

Expand Down
Expand Up @@ -33,7 +33,9 @@ public class JavaNetURIPropertyTypeDescriptor extends PropertyTypeDescriptor<URI
"file:///~calendar"
};

JavaNetURIPropertyTypeDescriptor() {
public static final JavaNetURIPropertyTypeDescriptor INSTANCE = new JavaNetURIPropertyTypeDescriptor();

private JavaNetURIPropertyTypeDescriptor() {
super( URI.class );
}

Expand Down
Expand Up @@ -22,7 +22,9 @@

public class JavaNetURLPropertyTypeDescriptor extends PropertyTypeDescriptor<URL> {

JavaNetURLPropertyTypeDescriptor() {
public static final JavaNetURLPropertyTypeDescriptor INSTANCE = new JavaNetURLPropertyTypeDescriptor();

private JavaNetURLPropertyTypeDescriptor() {
super( URL.class );
}

Expand Down
Expand Up @@ -24,7 +24,9 @@

public class JavaSqlDatePropertyTypeDescriptor extends PropertyTypeDescriptor<Date> {

JavaSqlDatePropertyTypeDescriptor() {
public static final JavaSqlDatePropertyTypeDescriptor INSTANCE = new JavaSqlDatePropertyTypeDescriptor();

private JavaSqlDatePropertyTypeDescriptor() {
super( Date.class );
}

Expand Down
Expand Up @@ -24,7 +24,9 @@

public class JavaSqlTimePropertyTypeDescriptor extends PropertyTypeDescriptor<Time> {

JavaSqlTimePropertyTypeDescriptor() {
public static final JavaSqlTimePropertyTypeDescriptor INSTANCE = new JavaSqlTimePropertyTypeDescriptor();

private JavaSqlTimePropertyTypeDescriptor() {
super( Time.class );
}

Expand Down
Expand Up @@ -24,7 +24,9 @@

public class JavaSqlTimestampPropertyTypeDescriptor extends PropertyTypeDescriptor<Timestamp> {

JavaSqlTimestampPropertyTypeDescriptor() {
public static final JavaSqlTimestampPropertyTypeDescriptor INSTANCE = new JavaSqlTimestampPropertyTypeDescriptor();

private JavaSqlTimestampPropertyTypeDescriptor() {
super( Timestamp.class );
}

Expand Down
Expand Up @@ -27,7 +27,9 @@

public class JavaUtilCalendarPropertyTypeDescriptor extends PropertyTypeDescriptor<Calendar> {

JavaUtilCalendarPropertyTypeDescriptor() {
public static final JavaUtilCalendarPropertyTypeDescriptor INSTANCE = new JavaUtilCalendarPropertyTypeDescriptor();

private JavaUtilCalendarPropertyTypeDescriptor() {
super( Calendar.class );
}

Expand Down
Expand Up @@ -25,7 +25,9 @@

public class JavaUtilDatePropertyTypeDescriptor extends PropertyTypeDescriptor<Date> {

JavaUtilDatePropertyTypeDescriptor() {
public static final JavaUtilDatePropertyTypeDescriptor INSTANCE = new JavaUtilDatePropertyTypeDescriptor();

private JavaUtilDatePropertyTypeDescriptor() {
super( Date.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class LocalDatePropertyTypeDescriptor extends PropertyTypeDescriptor<LocalDate> {

LocalDatePropertyTypeDescriptor() {
public static final LocalDatePropertyTypeDescriptor INSTANCE = new LocalDatePropertyTypeDescriptor();

private LocalDatePropertyTypeDescriptor() {
super( LocalDate.class );
}

Expand Down
Expand Up @@ -20,7 +20,9 @@

public class LocalDateTimePropertyTypeDescriptor extends PropertyTypeDescriptor<LocalDateTime> {

LocalDateTimePropertyTypeDescriptor() {
public static final LocalDateTimePropertyTypeDescriptor INSTANCE = new LocalDateTimePropertyTypeDescriptor();

private LocalDateTimePropertyTypeDescriptor() {
super( LocalDateTime.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class LocalTimePropertyTypeDescriptor extends PropertyTypeDescriptor<LocalTime> {

LocalTimePropertyTypeDescriptor() {
public static final LocalTimePropertyTypeDescriptor INSTANCE = new LocalTimePropertyTypeDescriptor();

private LocalTimePropertyTypeDescriptor() {
super( LocalTime.class );
}

Expand Down
Expand Up @@ -20,7 +20,9 @@

public class MonthDayPropertyTypeDescriptor extends PropertyTypeDescriptor<MonthDay> {

MonthDayPropertyTypeDescriptor() {
public static final MonthDayPropertyTypeDescriptor INSTANCE = new MonthDayPropertyTypeDescriptor();

private MonthDayPropertyTypeDescriptor() {
super( MonthDay.class );
}

Expand Down
Expand Up @@ -22,7 +22,9 @@

public class OffsetDateTimePropertyTypeDescriptor extends PropertyTypeDescriptor<OffsetDateTime> {

OffsetDateTimePropertyTypeDescriptor() {
public static final OffsetDateTimePropertyTypeDescriptor INSTANCE = new OffsetDateTimePropertyTypeDescriptor();

private OffsetDateTimePropertyTypeDescriptor() {
super( OffsetDateTime.class );
}

Expand Down
Expand Up @@ -21,7 +21,9 @@

public class OffsetTimePropertyTypeDescriptor extends PropertyTypeDescriptor<OffsetTime> {

OffsetTimePropertyTypeDescriptor() {
public static final OffsetTimePropertyTypeDescriptor INSTANCE = new OffsetTimePropertyTypeDescriptor();

private OffsetTimePropertyTypeDescriptor() {
super( OffsetTime.class );
}

Expand Down
Expand Up @@ -19,7 +19,9 @@

public class PeriodPropertyTypeDescriptor extends PropertyTypeDescriptor<Period> {

PeriodPropertyTypeDescriptor() {
public static final PeriodPropertyTypeDescriptor INSTANCE = new PeriodPropertyTypeDescriptor();

private PeriodPropertyTypeDescriptor() {
super( Period.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveBooleanPropertyTypeDescriptor extends PropertyTypeDescriptor<Boolean> {

PrimitiveBooleanPropertyTypeDescriptor() {
public static final PrimitiveBooleanPropertyTypeDescriptor INSTANCE = new PrimitiveBooleanPropertyTypeDescriptor();

private PrimitiveBooleanPropertyTypeDescriptor() {
super( boolean.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveBytePropertyTypeDescriptor extends PropertyTypeDescriptor<Byte> {

PrimitiveBytePropertyTypeDescriptor() {
public static final PrimitiveBytePropertyTypeDescriptor INSTANCE = new PrimitiveBytePropertyTypeDescriptor();

private PrimitiveBytePropertyTypeDescriptor() {
super( byte.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveCharacterPropertyTypeDescriptor extends PropertyTypeDescriptor<Character> {

PrimitiveCharacterPropertyTypeDescriptor() {
public static final PrimitiveCharacterPropertyTypeDescriptor INSTANCE = new PrimitiveCharacterPropertyTypeDescriptor();

private PrimitiveCharacterPropertyTypeDescriptor() {
super( char.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveDoublePropertyTypeDescriptor extends PropertyTypeDescriptor<Double> {

PrimitiveDoublePropertyTypeDescriptor() {
public static final PrimitiveDoublePropertyTypeDescriptor INSTANCE = new PrimitiveDoublePropertyTypeDescriptor();

private PrimitiveDoublePropertyTypeDescriptor() {
super( double.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveFloatPropertyTypeDescriptor extends PropertyTypeDescriptor<Float> {

PrimitiveFloatPropertyTypeDescriptor() {
public static final PrimitiveFloatPropertyTypeDescriptor INSTANCE = new PrimitiveFloatPropertyTypeDescriptor();

private PrimitiveFloatPropertyTypeDescriptor() {
super( float.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveIntegerPropertyTypeDescriptor extends PropertyTypeDescriptor<Integer> {

PrimitiveIntegerPropertyTypeDescriptor() {
public static final PrimitiveIntegerPropertyTypeDescriptor INSTANCE = new PrimitiveIntegerPropertyTypeDescriptor();

private PrimitiveIntegerPropertyTypeDescriptor() {
super( int.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveLongPropertyTypeDescriptor extends PropertyTypeDescriptor<Long> {

PrimitiveLongPropertyTypeDescriptor() {
public static final PrimitiveLongPropertyTypeDescriptor INSTANCE = new PrimitiveLongPropertyTypeDescriptor();

private PrimitiveLongPropertyTypeDescriptor() {
super( long.class );
}

Expand Down
Expand Up @@ -18,7 +18,9 @@

public class PrimitiveShortPropertyTypeDescriptor extends PropertyTypeDescriptor<Short> {

PrimitiveShortPropertyTypeDescriptor() {
public static final PrimitiveShortPropertyTypeDescriptor INSTANCE = new PrimitiveShortPropertyTypeDescriptor();

private PrimitiveShortPropertyTypeDescriptor() {
super( short.class );
}

Expand Down

0 comments on commit ba5489a

Please sign in to comment.