public static Float parserFloat ( JsonPullParser parser ) throws IOException , JsonFormatException { State eventType = parser . getEventType ( ) ; if ( eventType == State . VALUE_NULL ) { return null ; } else if ( eventType == State . VALUE_DOUBLE ) { return ( float ) parser . getValueDouble ( ) ; } else { throw new IllegalStateException ( "unexpected state. expected=VALUE_DOUBLE, but get=" + eventType . toString ( ) ) ; } }
Parses the current token as a single - precision floating point value .