Package io.jmix.webdav.dto
Class Applications
java.lang.Object
io.jmix.webdav.dto.Applications
- All Implemented Interfaces:
Map<String,
Application>
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
compute
(String key, BiFunction<? super String, ? super Application, ? extends Application> remappingFunction) computeIfAbsent
(String key, Function<? super String, ? extends Application> mappingFunction) computeIfPresent
(String key, BiFunction<? super String, ? super Application, ? extends Application> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
void
forEach
(BiConsumer<? super String, ? super Application> action) getApplicationByExtension
(String extension) You would memoize function or make cache if it had performance issuegetOrDefault
(Object key, Application defaultValue) int
hashCode()
boolean
isEmpty()
keySet()
merge
(String key, Application value, BiFunction<? super Application, ? super Application, ? extends Application> remappingFunction) put
(String key, Application value) void
putAll
(Map<? extends String, ? extends Application> m) putIfAbsent
(String key, Application value) boolean
replace
(String key, Application value) boolean
replace
(String key, Application oldValue, Application newValue) void
replaceAll
(BiFunction<? super String, ? super Application, ? extends Application> function) int
size()
values()
-
Field Details
-
delegate
-
-
Constructor Details
-
Applications
public Applications() -
Applications
-
-
Method Details
-
getApplicationByExtension
You would memoize function or make cache if it had performance issue- Parameters:
extension
- for resolving application- Returns:
Application
is resolved by extension or null if application not found
-
size
public int size()- Specified by:
size
in interfaceMap<String,
Application>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<String,
Application>
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Application>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Application>
-
get
- Specified by:
get
in interfaceMap<String,
Application>
-
put
- Specified by:
put
in interfaceMap<String,
Application>
-
remove
- Specified by:
remove
in interfaceMap<String,
Application>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
Application>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<String,
Application>
-
keySet
- Specified by:
keySet
in interfaceMap<String,
Application>
-
values
- Specified by:
values
in interfaceMap<String,
Application>
-
entrySet
- Specified by:
entrySet
in interfaceMap<String,
Application>
-
equals
-
hashCode
public int hashCode() -
getOrDefault
- Specified by:
getOrDefault
in interfaceMap<String,
Application>
-
forEach
- Specified by:
forEach
in interfaceMap<String,
Application>
-
replaceAll
public void replaceAll(BiFunction<? super String, ? super Application, ? extends Application> function) - Specified by:
replaceAll
in interfaceMap<String,
Application>
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<String,
Application>
-
remove
- Specified by:
remove
in interfaceMap<String,
Application>
-
replace
- Specified by:
replace
in interfaceMap<String,
Application>
-
replace
- Specified by:
replace
in interfaceMap<String,
Application>
-
computeIfAbsent
public Application computeIfAbsent(String key, Function<? super String, ? extends Application> mappingFunction) - Specified by:
computeIfAbsent
in interfaceMap<String,
Application>
-
computeIfPresent
public Application computeIfPresent(String key, BiFunction<? super String, ? super Application, ? extends Application> remappingFunction) - Specified by:
computeIfPresent
in interfaceMap<String,
Application>
-
compute
public Application compute(String key, BiFunction<? super String, ? super Application, ? extends Application> remappingFunction) - Specified by:
compute
in interfaceMap<String,
Application>
-
merge
public Application merge(String key, Application value, BiFunction<? super Application, ? super Application, ? extends Application> remappingFunction) - Specified by:
merge
in interfaceMap<String,
Application>
-