public static void generateLogForContentValuesContentProvider ( SQLiteModelMethod method , MethodSpec . Builder methodBuilder ) { methodBuilder . addCode ( "\n// log for content values -- BEGIN\n" ) ; methodBuilder . addStatement ( "Object _contentValue" ) ; methodBuilder . beginControlFlow ( "for (String _contentKey:_contentValues.values().keySet())" ) ; methodBuilder . addStatement ( "_contentValue=_contentValues.values().get(_contentKey)" ) ; methodBuilder . beginControlFlow ( "if (_contentValue==null)" ) ; methodBuilder . addStatement ( "$T.info(\"==> :%s = <null>\", _contentKey)" , Logger . class ) ; methodBuilder . nextControlFlow ( "else" ) ; methodBuilder . addStatement ( "$T.info(\"==> :%s = '%s' (%s)\", _contentKey, $T.checkSize(_contentValue), _contentValue.getClass().getCanonicalName())" , Logger . class , StringUtils . class ) ; methodBuilder . endControlFlow ( ) ; methodBuilder . endControlFlow ( ) ; methodBuilder . addCode ( "// log for content values -- END\n" ) ; }
Generate log for content values content provider .