public static < T , R > SwitchBuilder < T , R > switchBinding ( ObservableValue < T > observable , Class < R > bindingType ) { return new SwitchBuilder <> ( observable ) ; }
Creates builder for a binding that works like a switch - case in java .