-
Notifications
You must be signed in to change notification settings - Fork 587
/
mutableObjectPrimitiveHashingStrategyMapFactoryImpl.stg
55 lines (43 loc) · 1.9 KB
/
mutableObjectPrimitiveHashingStrategyMapFactoryImpl.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
import "copyrightAndOthers.stg"
targetPath() ::= "org/eclipse/collections/impl/map/mutable/primitive"
fileName(primitive) ::= "MutableObject<primitive.name>HashingStrategyMapFactoryImpl"
class(primitive) ::= <<
<body(primitive.type, primitive.name)>
>>
body(type, name) ::= <<
<copyrightAndOthers()>
package org.eclipse.collections.impl.map.mutable.primitive;
import org.eclipse.collections.api.block.HashingStrategy;
import org.eclipse.collections.api.factory.map.primitive.MutableObject<name>HashingStrategyMapFactory;
import org.eclipse.collections.api.map.primitive.MutableObject<name>Map;
/**
* MutableObject<name>HashingStrategyMapFactoryImpl is a factory implementation which creates instances of type {@link MutableObject<name>Map}.
* This file was automatically generated from template file mutableObjectPrimitiveHashingStrategyMapFactoryImpl.stg.
*
* @since 11.1.
*/
public class MutableObject<name>HashingStrategyMapFactoryImpl implements MutableObject<name>HashingStrategyMapFactory
{
public static final MutableObject<name>HashingStrategyMapFactory INSTANCE = new MutableObject<name>HashingStrategyMapFactoryImpl();
@Override
public \<K> MutableObject<name>Map\<K> empty(HashingStrategy\<? super K> hashingStrategy)
{
return Object<name>HashMapWithHashingStrategy.newMap(hashingStrategy);
}
@Override
public \<K> MutableObject<name>Map\<K> of(HashingStrategy\<? super K> hashingStrategy)
{
return this.empty(hashingStrategy);
}
@Override
public \<K> MutableObject<name>Map\<K> with(HashingStrategy\<? super K> hashingStrategy)
{
return this.empty(hashingStrategy);
}
@Override
public \<K> MutableObject<name>Map\<K> withInitialCapacity(HashingStrategy\<? super K> hashingStrategy, int initialCapacity)
{
return Object<name>HashMapWithHashingStrategy.newMapWithInitialCapacity(hashingStrategy, initialCapacity);
}
}
>>