ConstantReaderExtensions extension

on
  • ConstantReader

Methods

peekBoolValue(String field) bool?

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a bool or null if the field is not a bool.
peekDoubleValue(String field) double?

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a double or null if the field is not a double.
peekIntValue(String field) int?

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as an int or null if the field is not an int.
peekStringValue(String field) String?

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a String or null if the field is not a String.
readBoolValue(String field) bool

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a bool or throws a FormatException if the field is not a bool.
readDoubleValue(String field) double

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a double or throws a FormatException if the field is not a double.
readIntValue(String field) int

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as an int or throws a FormatException if the field is not an int.
readStringValue(String field) String

Available on ConstantReader, provided by the ConstantReaderExtensions extension

Returns the value of the field as a String or throws a FormatException if the field is not a String.