private Callable createListToObjectBinding ( ListProperty < P > listProperty ) { return ( ) -> { if ( ! isListChange ( ) && listProperty . get ( ) != null && listProperty . get ( ) . size ( ) != 0 ) { return listProperty . get ( ) . get ( 0 ) ; } return null ; } ; }
Creates a function which handles binding between a ListProperty and an ObjectProperty .