ConstantReaderExtensions extension

on
  • ConstantReader

Methods

peekBoolValue(String field) bool?
Returns the value of the field as a bool or null if the field is not a bool.
peekDoubleValue(String field) double?
Returns the value of the field as a double or null if the field is not a double.
peekIntValue(String field) int?
Returns the value of the field as an int or null if the field is not an int.
peekStringValue(String field) String?
Returns the value of the field as a String or null if the field is not a String.
readBoolValue(String field) bool
Returns the value of the field as a bool or throws a FormatException if the field is not a bool.
readDoubleValue(String field) double
Returns the value of the field as a double or throws a FormatException if the field is not a double.
readIntValue(String field) int
Returns the value of the field as an int or throws a FormatException if the field is not an int.
readStringValue(String field) String
Returns the value of the field as a String or throws a FormatException if the field is not a String.