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

« back to all changes in this revision

Viewing changes to gs-collections-code-generator/src/main/resources/api/factory/map/immutablePrimitivePrimitiveMapFactory.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
hasTwoPrimitives() ::= "true"
 
4
 
 
5
skipBooleanKeys() ::= "true"
 
6
 
 
7
targetPath() ::= "com/gs/collections/api/factory/map/primitive"
 
8
 
 
9
fileName(primitive1, primitive2, sameTwoPrimitives) ::= "Immutable<primitive1.name><primitive2.name>MapFactory"
 
10
 
 
11
class(primitive1, primitive2, sameTwoPrimitives) ::= <<
 
12
<body(primitive1.type, primitive2.type, primitive1.name, primitive2.name)>
 
13
>>
 
14
 
 
15
body(type1, type2, name1, name2) ::= <<
 
16
<copyright()>
 
17
 
 
18
package com.gs.collections.api.factory.map.primitive;
 
19
 
 
20
import com.gs.collections.api.map.primitive.Immutable<name1><name2>Map;
 
21
import com.gs.collections.api.map.primitive.<name1><name2>Map;
 
22
 
 
23
/**
 
24
 * A factory which creates instances of type {@link Immutable<name1><name2>Map}.
 
25
 * This file was automatically generated from template file immutablePrimitivePrimitiveMapFactory.stg.
 
26
 *
 
27
 * @since 4.0.
 
28
 */
 
29
public interface Immutable<name1><name2>MapFactory
 
30
{
 
31
    /**
 
32
     * Same as {@link #with()}.
 
33
     */
 
34
    Immutable<name1><name2>Map of();
 
35
 
 
36
    Immutable<name1><name2>Map with();
 
37
 
 
38
    /**
 
39
     * Same as {@link #with(<type1>, <type2>)}.
 
40
     */
 
41
    Immutable<name1><name2>Map of(<type1> key, <type2> value);
 
42
 
 
43
    Immutable<name1><name2>Map with(<type1> key, <type2> value);
 
44
 
 
45
    /**
 
46
     * Same as {@link #withAll(<name1><name2>Map)}.
 
47
     */
 
48
    Immutable<name1><name2>Map ofAll(<name1><name2>Map map);
 
49
 
 
50
    Immutable<name1><name2>Map withAll(<name1><name2>Map map);
 
51
}
 
52
 
 
53
>>