oSumAtrIX
a46e948b5a
feat: Add PatchOption#valueType to handle type erasure
...
Without this new property, it is not possible to infer the type without abusing `ClassCastException` at runtime to infer the type of the option value.
BREAKING CHANGE: This changes the signature of the `PatchOption` constructor.
2023-10-24 22:33:10 +02:00
oSumAtrIX
54ac1394a9
feat: Use a map for PatchOption#values
...
This allows to display a string representation associated to the option value.
2023-10-22 17:07:22 +02:00
oSumAtrIX
56ce9ec2f9
feat: Make PatchOption#values nullable
...
There is no difference semantically, but this change allows passing null as a parameter which is simpler than having to use `emptySet()`.
2023-10-22 16:07:01 +02:00
oSumAtrIX
098c2c1efa
chore: Test default option value
2023-10-22 02:50:26 +02:00
oSumAtrIX
64343e5a7c
chore: Test resetting options
2023-10-22 02:49:44 +02:00
oSumAtrIX
0caf6caeb9
refactor: Simplify patch option tests
2023-10-22 02:46:51 +02:00
oSumAtrIX
55f6c2a9fc
feat!: Add property PatchOption#values
2023-10-22 02:38:12 +02:00
oSumAtrIX
09cd6aa568
refactor: Change PatchOption from abstract to open class
...
BREAKING CHANGE: This gets rid of the existing basic implementations of the `PatchOptions` type and moves extension functions.
2023-10-22 01:55:05 +02:00
oSumAtrIX
c38f0ef42a
build: Move subproject to root project
2023-10-14 19:30:10 +02:00