
com.github.t3t5u.common.domain.Properties Maven / Gradle / Ivy
package com.github.t3t5u.common.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.github.t3t5u.common.expression.Literalizer;
public final class Properties {
private Properties() {
}
public static > Property asBoolean(final Literalizer literalizer) {
return new Property(Boolean.class, literalizer);
}
public static > Property asBigDecimal(final Literalizer literalizer) {
return new Property(BigDecimal.class, literalizer);
}
public static > Property asByte(final Literalizer literalizer) {
return new Property(Byte.class, literalizer);
}
public static > Property asShort(final Literalizer literalizer) {
return new Property(Short.class, literalizer);
}
public static > Property asInteger(final Literalizer literalizer) {
return new Property(Integer.class, literalizer);
}
public static > Property asLong(final Literalizer literalizer) {
return new Property(Long.class, literalizer);
}
public static > Property asFloat(final Literalizer literalizer) {
return new Property(Float.class, literalizer);
}
public static > Property asDouble(final Literalizer literalizer) {
return new Property(Double.class, literalizer);
}
public static > Property asCharacter(final Literalizer literalizer) {
return new Property(Character.class, literalizer);
}
public static > Property asString(final Literalizer literalizer) {
return new Property(String.class, literalizer);
}
public static , T extends Enum> Property asEnum(final Class expressionClass, final Literalizer literalizer) {
return new Property(expressionClass, literalizer);
}
public static > Property asDate(final Literalizer literalizer) {
return new Property(Date.class, literalizer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy