/** * A constructor. * * @param type the property type * @param value the property value * @throws SparkplugInvalidTypeException */ public PropertyValue(PropertyDataType type, Object value) throws SparkplugInvalidTypeException { this.type = type; this.value = value; isNull = (value == null) ? true : false; type.checkType(value); }