/
lazyPrimitiveIterable.stg
72 lines (51 loc) · 2.22 KB
/
lazyPrimitiveIterable.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
import "copyrightAndOthers.stg"
import "primitiveLiteral.stg"
targetPath() ::= "org/eclipse/collections/api"
fileName(primitive) ::= "Lazy<primitive.name>Iterable"
class(primitive) ::= <<
<body(primitive.type, primitive.name)>
>>
collectPrimitive(fromName, fromType, toName, toType) ::= <<
/**
* @since 7.0
*/
Lazy<toName>Iterable collect<toName>(<fromName>To<toName>Function function);
>>
body(type, name) ::= <<
<copyrightAndOthers()>
package org.eclipse.collections.api;
import org.eclipse.collections.api.block.function.primitive.<name>ToBooleanFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToByteFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToCharFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToDoubleFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToFloatFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToIntFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToLongFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToObjectFunction;
import org.eclipse.collections.api.block.function.primitive.<name>ToShortFunction;
import org.eclipse.collections.api.block.predicate.primitive.<name>Predicate;
/**
* This file was automatically generated from template file lazyPrimitiveIterable.stg.
*/
public interface Lazy<name>Iterable extends <name>Iterable
{
@Override
Lazy<name>Iterable select(<name>Predicate predicate);
@Override
Lazy<name>Iterable reject(<name>Predicate predicate);
@Override
\<V> LazyIterable\<V> collect(<name>ToObjectFunction\<? extends V> function);
/**
* @since 9.0
*/
\<V> LazyIterable\<V> flatCollect(<name>ToObjectFunction\<? extends Iterable\<V>\> function);
<collectPrimitive(name, type, "Boolean", "boolean")>
<collectPrimitive(name, type, "Byte", "byte")>
<collectPrimitive(name, type, "Char", "char")>
<collectPrimitive(name, type, "Short", "short")>
<collectPrimitive(name, type, "Int", "int")>
<collectPrimitive(name, type, "Float", "float")>
<collectPrimitive(name, type, "Long", "long")>
<collectPrimitive(name, type, "Double", "double")>
}
>>