List < Message > getList ( ) { if ( mode == StorageMode . MAP ) { synchronized ( this ) { if ( mode == StorageMode . MAP ) { listData = convertMapToList ( mapData ) ; mode = StorageMode . BOTH ; } } } return Collections . unmodifiableList ( listData ) ; }
Gets the content of this MapField as a read - only List .