~ubuntu-branches/ubuntu/wily/gs-collections/wily

« back to all changes in this revision

Viewing changes to gs-collections-code-generator/src/main/resources/test/map/mutable/unmodifiableObjectPrimitiveMapKeyValuesViewTest.stg

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2015-07-23 12:42:30 UTC
  • Revision ID: package-import@ubuntu.com-20150723124230-2rjvfv6elyn2m7d4
Tags: upstream-5.1.0
ImportĀ upstreamĀ versionĀ 5.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import "copyright.stg"
 
2
 
 
3
skipBoolean() ::= "true"
 
4
 
 
5
isTest() ::= "true"
 
6
 
 
7
targetPath() ::= "com/gs/collections/impl/map/mutable/primitive"
 
8
 
 
9
fileName(primitive) ::= "UnmodifiableObject<primitive.name>MapKeyValuesViewTest"
 
10
 
 
11
class(primitive) ::= <<
 
12
<body(primitive.type, primitive.name)>
 
13
>>
 
14
 
 
15
body(type, name) ::= <<
 
16
<copyright()>
 
17
 
 
18
package com.gs.collections.impl.map.mutable.primitive;
 
19
 
 
20
import com.gs.collections.api.map.primitive.MutableObject<name>Map;
 
21
import com.gs.collections.impl.map.primitive.AbstractObject<name>MapKeyValuesViewTestCase;
 
22
 
 
23
/**
 
24
 * JUnit test for {@link UnmodifiableObject<name>Map#keyValuesView()}.
 
25
 * This file was automatically generated from template file unmodifiableObjectPrimitiveMapKeyValuesViewTest.stg.
 
26
 */
 
27
public class UnmodifiableObject<name>MapKeyValuesViewTest extends AbstractObject<name>MapKeyValuesViewTestCase
 
28
{
 
29
    @Override
 
30
    public \<T> MutableObject<name>Map \<T> newWithKeysValues(T key1, <type> value1, T key2, <type> value2, T key3, <type> value3)
 
31
    {
 
32
        return Object<name>HashMap.newWithKeysValues(key1, value1, key2, value2, key3, value3).asUnmodifiable();
 
33
    }
 
34
 
 
35
    @Override
 
36
    public \<T> MutableObject<name>Map \<T> newWithKeysValues(T key1, <type> value1, T key2, <type> value2)
 
37
    {
 
38
        return Object<name>HashMap.newWithKeysValues(key1, value1, key2, value2).asUnmodifiable();
 
39
    }
 
40
 
 
41
    @Override
 
42
    public \<T> MutableObject<name>Map \<T> newWithKeysValues(T key1, <type> value1)
 
43
    {
 
44
        return Object<name>HashMap.newWithKeysValues(key1, value1).asUnmodifiable();
 
45
    }
 
46
 
 
47
    @Override
 
48
    public MutableObject<name>Map\<Object> newEmpty()
 
49
    {
 
50
        return Object<name>HashMap.newMap().asUnmodifiable();
 
51
    }
 
52
}
 
53
 
 
54
>>