Package io.dialob.rule.parser.api
Class ArrayValueType
- java.lang.Object
-
- io.dialob.rule.parser.api.ArrayValueType
-
- All Implemented Interfaces:
ValueType,Serializable
public class ArrayValueType extends Object implements ValueType
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqualWith(ValueType rhs)booleancanOrderWith(ValueType rhs)ValueTypedivideByType(ValueType rhs)booleanequals(Object obj)<T> Comparator<T>getComparator()ValueTypegetItemValueType()StringgetName()Class<?>getTypeClass()bytegetTypeCode()inthashCode()booleanisArray()booleanisNegateable()booleanisPrimitive()ValueTypeminusType(ValueType rhs)ValueTypemultiplyType(ValueType rhs)<T> BinaryOperator<T>multOp()Objectnegate(Object value)Objectnot(Object value)ObjectparseFromString(String string)ObjectparseFromStringWithUnit(String value, String unit)ValueTypeplusType(ValueType rhs)ObjectreadFrom(com.google.protobuf.CodedInputStream input)<T> BinaryOperator<T>sumOp()StringtoString()voidwriteTo(com.google.protobuf.CodedOutputStream output, Object value)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.dialob.rule.parser.api.ValueType
coerseFrom
-
-
-
-
Method Detail
-
getComparator
public <T> Comparator<T> getComparator()
- Specified by:
getComparatorin interfaceValueType
-
getTypeClass
public Class<?> getTypeClass()
- Specified by:
getTypeClassin interfaceValueType
-
parseFromString
public Object parseFromString(String string)
- Specified by:
parseFromStringin interfaceValueType
-
isNegateable
public boolean isNegateable()
- Specified by:
isNegateablein interfaceValueType
-
sumOp
public <T> BinaryOperator<T> sumOp()
-
multOp
public <T> BinaryOperator<T> multOp()
-
multiplyType
public ValueType multiplyType(ValueType rhs)
- Specified by:
multiplyTypein interfaceValueType
-
divideByType
public ValueType divideByType(ValueType rhs)
- Specified by:
divideByTypein interfaceValueType
-
canEqualWith
public boolean canEqualWith(ValueType rhs)
- Specified by:
canEqualWithin interfaceValueType
-
canOrderWith
public boolean canOrderWith(ValueType rhs)
- Specified by:
canOrderWithin interfaceValueType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceValueType
-
parseFromStringWithUnit
public Object parseFromStringWithUnit(String value, String unit)
- Specified by:
parseFromStringWithUnitin interfaceValueType
-
getTypeCode
public byte getTypeCode()
- Specified by:
getTypeCodein interfaceValueType
-
getItemValueType
public ValueType getItemValueType()
- Specified by:
getItemValueTypein interfaceValueType
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output, Object value) throws IOException- Specified by:
writeToin interfaceValueType- Throws:
IOException
-
readFrom
public Object readFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Specified by:
readFromin interfaceValueType- Throws:
IOException
-
-