< prev index next >
modules/base/src/main/java/javafx/collections/FXCollections.java
Print this page
*** 195,205 ****
* Creates and returns a typesafe wrapper on top of provided observable map.
* @param map an Observable map to be wrapped
* @param keyType the type of key that {@code map} is permitted to hold
* @param valueType the type of value that {@code map} is permitted to hold
* @return a dynamically typesafe view of the specified map
! * @see Collections#checkedMap(java.util.Map, java.lang.Class)
* @since JavaFX 8.0
*/
public static <K, V> ObservableMap<K, V> checkedObservableMap(ObservableMap<K, V> map, Class<K> keyType, Class<V> valueType) {
if (map == null || keyType == null || valueType == null) {
throw new NullPointerException();
--- 195,205 ----
* Creates and returns a typesafe wrapper on top of provided observable map.
* @param map an Observable map to be wrapped
* @param keyType the type of key that {@code map} is permitted to hold
* @param valueType the type of value that {@code map} is permitted to hold
* @return a dynamically typesafe view of the specified map
! * @see Collections#checkedMap(java.util.Map, java.lang.Class, java.lang.Class)
* @since JavaFX 8.0
*/
public static <K, V> ObservableMap<K, V> checkedObservableMap(ObservableMap<K, V> map, Class<K> keyType, Class<V> valueType) {
if (map == null || keyType == null || valueType == null) {
throw new NullPointerException();
< prev index next >