Closed ExE-Boss closed 7 years ago
Merging #286 into master will increase coverage by
0.19%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #286 +/- ##
============================================
+ Coverage 13.23% 13.43% +0.19%
- Complexity 684 704 +20
============================================
Files 405 405
Lines 12198 12226 +28
Branches 1288 1294 +6
============================================
+ Hits 1615 1643 +28
Misses 10482 10482
Partials 101 101
Impacted Files | Coverage Δ | Complexity Δ | |
---|---|---|---|
src/main/java/nova/core/util/EnumSelector.java | 100% <100%> (ø) |
52 <17> (+20) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 42603ed...63852d1. Read the comment docs.
This PR adds additional methods to
EnumSelector
.To do list:
size()
methodNew Features:
apart(Iterable<T>)
for passing collections.apart(T, T)
to allow passing as a method reference toBiFunction<T, T, EnumSelector<T>>
andBiConsumer<T, T>
.apart(T...)
var-args method, replacesapart(T, T...)
Changes:
toString()
now returns the same result astoSet().toString()
.equals()
now returns true whenthis.toSet().equals(other.toSet())
.hashCode()
now returns a consistent value calculated fromthis.toSet()
.Bug Fixes:
blocksAll()
would return false whenallowAll().apart(EnumExample.values())
was called.allowsAll()
would return false whenblockAll().apart(EnumExample.values())
was called.