public static NumberBinding sum ( final ObservableList < ? extends Number > numbers ) { return Bindings . createDoubleBinding ( ( ) -> numbers . stream ( ) . mapToDouble ( Number :: doubleValue ) . sum ( ) , numbers ) ; }
Creates a number binding that contains the sum of the numbers of the given observable list of numbers .