public ListMultimap < String , String > asObject ( ) { if ( values . isEmpty ( ) ) { return new ListMultimap < String , String > ( 0 ) ; } Map < String , JsonValue > map = values . get ( 0 ) . getObject ( ) ; if ( map == null ) { return new ListMultimap < String , String > ( 0 ) ; } ListMultimap < String , String > values = new ListMultimap < String , String > ( ) ; for ( Map . Entry < String , JsonValue > entry : map . entrySet ( ) ) { String key = entry . getKey ( ) ; JsonValue value = entry . getValue ( ) ; if ( value . isNull ( ) ) { values . put ( key , "" ) ; continue ; } Object obj = value . getValue ( ) ; if ( obj != null ) { values . put ( key , obj . toString ( ) ) ; continue ; } List < JsonValue > array = value . getArray ( ) ; if ( array != null ) { for ( JsonValue element : array ) { if ( element . isNull ( ) ) { values . put ( key , "" ) ; continue ; } obj = element . getValue ( ) ; if ( obj != null ) { values . put ( key , obj . toString ( ) ) ; } } } } return values ; }
Parses this jCal value as an object property value .