Class BooleanParser (0.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass BooleanParserextendsParser<Boolean>Parse specified data to boolean. For most cases it is simply translating from chars 't'/'f' to bit, or simply returning the bit representation.
Inherited Members
Static Methods
toBoolean(byte[] data)
publicstaticbooleantoBoolean(byte[]data)Converts the given binary data to a boolean value.
toBoolean(String value)
publicstaticbooleantoBoolean(Stringvalue)Converts the string to a boolean value according to the PostgreSQL specs.
Methods
binaryParse()
protectedbyte[]binaryParse()Used to parse data type onto binary. Override this to change binary representation.
bind(Statement.Builder statementBuilder, String name)
publicvoidbind(Statement.BuilderstatementBuilder,Stringname)com.google.cloud.spanner.Statement.BuilderspannerParse()
protectedStringspannerParse()Used to parse data type onto spanner format. Override this to change spanner representation.
stringParse()
publicStringstringParse()Used to parse data type into string. Override this to change the string representation.