java.lang.Object
org.ojalgo.type.collection.CloseableMap<K,V>
- All Implemented Interfaces:
AutoCloseable,Map<K,V>
public class CloseableMap<K,V extends AutoCloseable>
extends Object
implements Map<K,V>, AutoCloseable
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclose()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) inthashCode()booleanisEmpty()keySet()static <K,V extends AutoCloseable>
CloseableMap<K, V> static <K,V extends AutoCloseable>
CloseableMap<K, V> newInstance(int capacity) voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()values()static <K,V extends AutoCloseable>
CloseableMap<K, V>
-
Field Details
-
myDelegate
-
-
Constructor Details
-
CloseableMap
-
-
Method Details
-
newInstance
-
newInstance
-
wrap
-
clear
public void clear()- Specified by:
clearin interfaceMap<K,V extends AutoCloseable>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
compute
- Specified by:
computein interfaceMap<K,V extends AutoCloseable>
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V extends AutoCloseable>
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceMap<K,V extends AutoCloseable>
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V extends AutoCloseable>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V extends AutoCloseable>
-
entrySet
- Specified by:
entrySetin interfaceMap<K,V extends AutoCloseable>
-
equals
-
forEach
- Specified by:
forEachin interfaceMap<K,V extends AutoCloseable>
-
get
- Specified by:
getin interfaceMap<K,V extends AutoCloseable>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K,V extends AutoCloseable>
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceMap<K,V extends AutoCloseable>
-
keySet
- Specified by:
keySetin interfaceMap<K,V extends AutoCloseable>
-
merge
- Specified by:
mergein interfaceMap<K,V extends AutoCloseable>
-
put
- Specified by:
putin interfaceMap<K,V extends AutoCloseable>
-
putAll
- Specified by:
putAllin interfaceMap<K,V extends AutoCloseable>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V extends AutoCloseable>
-
remove
- Specified by:
removein interfaceMap<K,V extends AutoCloseable>
-
remove
- Specified by:
removein interfaceMap<K,V extends AutoCloseable>
-
replace
- Specified by:
replacein interfaceMap<K,V extends AutoCloseable>
-
replace
- Specified by:
replacein interfaceMap<K,V extends AutoCloseable>
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V extends AutoCloseable>
-
size
public int size()- Specified by:
sizein interfaceMap<K,V extends AutoCloseable>
-
values
- Specified by:
valuesin interfaceMap<K,V extends AutoCloseable>
-