Package io.dialob.rule.parser.api
Interface ValueType
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ArrayValueType,PrimitiveValueType
public interface ValueType extends Serializable
-
-
Method Summary
-
-
-
Field Detail
-
TIME
static final ValueType TIME
-
DATE
static final ValueType DATE
-
STRING
static final ValueType STRING
-
PERIOD
static final ValueType PERIOD
-
INTEGER
static final ValueType INTEGER
-
DECIMAL
static final ValueType DECIMAL
-
BOOLEAN
static final ValueType BOOLEAN
-
DURATION
static final ValueType DURATION
-
PERCENT
static final ValueType PERCENT
-
-
Method Detail
-
getComparator
<T> Comparator<T> getComparator()
-
getTypeClass
Class<?> getTypeClass()
-
isNegateable
boolean isNegateable()
-
sumOp
<T> BinaryOperator<T> sumOp()
-
multOp
<T> BinaryOperator<T> multOp()
-
canEqualWith
boolean canEqualWith(ValueType rhs)
-
canOrderWith
boolean canOrderWith(ValueType rhs)
-
getName
String getName()
-
isArray
default boolean isArray()
-
isPrimitive
boolean isPrimitive()
-
valueTypeOf
@Nullable static @Nullable ValueType valueTypeOf(@NotNull @NotNull Class<?> returnType)
-
getTypeCode
byte getTypeCode()
-
getItemValueType
default ValueType getItemValueType()
-
writeTo
void writeTo(com.google.protobuf.CodedOutputStream output, Object value) throws IOException- Throws:
IOException
-
readFrom
Object readFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
-