File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed
main/java/com/jnape/palatable/lambda/functions/builtin/fn2
test/java/com/jnape/palatable/lambda/functions/builtin/fn2 Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) .
5
5
6
6
## [ Unreleased]
7
- _ No changes yet_
7
+ ### Changed
8
+ - *** Breaking Change*** : ` Difference ` and ` Intersection ` no longer instances of ` Semigroup ` and moved to ` functions.builtin.fn2 ` package
8
9
9
10
## [ 3.1.0] - 2018-07-16
10
11
### Added
Original file line number Diff line number Diff line change 1
- package com .jnape .palatable .lambda .semigroup .builtin ;
1
+ package com .jnape .palatable .lambda .functions .builtin . fn2 ;
2
2
3
3
import com .jnape .palatable .lambda .functions .Fn1 ;
4
+ import com .jnape .palatable .lambda .functions .Fn2 ;
4
5
import com .jnape .palatable .lambda .functions .builtin .fn1 .Distinct ;
5
- import com .jnape .palatable .lambda .semigroup .Semigroup ;
6
6
7
7
import java .util .HashSet ;
8
8
21
21
*
22
22
* @param <A> the {@link Iterable} element type
23
23
*/
24
- public final class Difference <A > implements Semigroup < Iterable <A >> {
24
+ public final class Difference <A > implements Fn2 < Iterable < A >, Iterable < A >, Iterable <A >> {
25
25
26
26
private static final Difference INSTANCE = new Difference ();
27
27
Original file line number Diff line number Diff line change 1
- package com .jnape .palatable .lambda .semigroup .builtin ;
1
+ package com .jnape .palatable .lambda .functions .builtin . fn2 ;
2
2
3
3
import com .jnape .palatable .lambda .functions .Fn1 ;
4
+ import com .jnape .palatable .lambda .functions .Fn2 ;
4
5
import com .jnape .palatable .lambda .functions .builtin .fn1 .Distinct ;
5
- import com .jnape .palatable .lambda .semigroup .Semigroup ;
6
6
7
7
import java .util .HashSet ;
8
8
import java .util .Set ;
19
19
*
20
20
* @param <A> the {@link Iterable} element type
21
21
*/
22
- public final class Intersection <A > implements Semigroup < Iterable <A >> {
22
+ public final class Intersection <A > implements Fn2 < Iterable < A >, Iterable < A >, Iterable <A >> {
23
23
24
24
private static final Intersection INSTANCE = new Intersection ();
25
25
Original file line number Diff line number Diff line change 1
- package com .jnape .palatable .lambda .semigroup .builtin ;
1
+ package com .jnape .palatable .lambda .functions .builtin . fn2 ;
2
2
3
3
import com .jnape .palatable .lambda .functions .Fn1 ;
4
4
import com .jnape .palatable .traitor .annotations .TestTraits ;
11
11
import testsupport .traits .InfiniteIterableSupport ;
12
12
import testsupport .traits .Laziness ;
13
13
14
- import static com .jnape .palatable .lambda .semigroup .builtin .Difference .difference ;
14
+ import static com .jnape .palatable .lambda .functions .builtin . fn2 .Difference .difference ;
15
15
import static java .util .Arrays .asList ;
16
16
import static java .util .Collections .emptyList ;
17
17
import static java .util .Collections .singletonList ;
Original file line number Diff line number Diff line change 1
- package com .jnape .palatable .lambda .semigroup .builtin ;
1
+ package com .jnape .palatable .lambda .functions .builtin . fn2 ;
2
2
3
3
import com .jnape .palatable .lambda .functions .Fn1 ;
4
4
import com .jnape .palatable .traitor .annotations .TestTraits ;
10
10
import testsupport .traits .InfiniteIterableSupport ;
11
11
import testsupport .traits .Laziness ;
12
12
13
- import static com .jnape .palatable .lambda .semigroup .builtin .Intersection .intersection ;
13
+ import static com .jnape .palatable .lambda .functions .builtin . fn2 .Intersection .intersection ;
14
14
import static java .util .Arrays .asList ;
15
15
import static java .util .Collections .emptyList ;
16
16
import static java .util .Collections .singletonList ;
You can’t perform that action at this time.
0 commit comments