@ NonNull @ Override public Map < String , Object > toMap ( ) { final List < Object > values = toList ( ) ; final Map < String , Object > dict = new HashMap <> ( ) ; for ( String name : rs . getColumnNames ( ) . keySet ( ) ) { final int index = indexForColumnName ( name ) ; if ( index >= 0 ) { dict . put ( name , values . get ( index ) ) ; } } return dict ; }
Gets all values as a Dictionary . The value types of the values contained in the returned Dictionary object are Array Blob Dictionary Number types String and null .