-
Notifications
You must be signed in to change notification settings - Fork 586
/
mutablePrimitiveObjectMap.stg
87 lines (60 loc) · 2.73 KB
/
mutablePrimitiveObjectMap.stg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import "copyright.stg"
skipBoolean() ::= "true"
targetPath() ::= "org/eclipse/collections/api/map/primitive"
fileName(primitive) ::= "Mutable<primitive.name>ObjectMap"
class(primitive) ::= <<
<body(primitive.type, primitive.name)>
>>
body(type, name) ::= <<
<copyright()>
package org.eclipse.collections.api.map.primitive;
import org.eclipse.collections.api.<name>Iterable;
import org.eclipse.collections.api.block.function.Function;
import org.eclipse.collections.api.block.function.Function0;
import org.eclipse.collections.api.block.function.Function2;
import org.eclipse.collections.api.block.function.primitive.<name>ToObjectFunction;
import org.eclipse.collections.api.block.predicate.primitive.<name>ObjectPredicate;
import org.eclipse.collections.api.block.procedure.Procedure;
/**
* This file was automatically generated from template file mutablePrimitiveObjectMap.stg.
*
* @since 3.0.
*/
public interface Mutable<name>ObjectMap\<V> extends <name>ObjectMap\<V>, MutablePrimitiveObjectMap\<V>
{
V put(<type> key, V value);
/**
* @since 5.0.
*/
void putAll(<name>ObjectMap\<? extends V> map);
V removeKey(<type> key);
V remove(<type> key);
V getIfAbsentPut(<type> key, V value);
V getIfAbsentPut(<type> key, Function0\<? extends V> function);
V getIfAbsentPutWithKey(<type> key, <name>ToObjectFunction\<? extends V> function);
\<P> V getIfAbsentPutWith(<type> key, Function\<? super P, ? extends V> function, P parameter);
/**
* Look up the value associated with {@code key}, apply the {@code function} to it, and replace the value. If there
* is no value associated with {@code key}, start it off with a value supplied by {@code factory}.
*/
V updateValue(<type> key, Function0\<? extends V> factory, Function\<? super V, ? extends V> function);
/**
* Same as {@link #updateValue(<type>, Function0, Function)} with a Function2 and specified parameter which is
* passed to the function.
*/
\<P> V updateValueWith(<type> key, Function0\<? extends V> factory, Function2\<? super V, ? super P, ? extends V> function, P parameter);
@Override
MutableObject<name>Map\<V> flipUniqueValues();
@Override
Mutable<name>ObjectMap\<V> tap(Procedure\<? super V> procedure);
@Override
Mutable<name>ObjectMap\<V> select(<name>ObjectPredicate\<? super V> predicate);
@Override
Mutable<name>ObjectMap\<V> reject(<name>ObjectPredicate\<? super V> predicate);
Mutable<name>ObjectMap\<V> withKeyValue(<type> key, V value);
Mutable<name>ObjectMap\<V> withoutKey(<type> key);
Mutable<name>ObjectMap\<V> withoutAllKeys(<name>Iterable keys);
Mutable<name>ObjectMap\<V> asUnmodifiable();
Mutable<name>ObjectMap\<V> asSynchronized();
}
>>