Skip to content

Commit d00b19d

Browse files
author
nicolaiparlog
committed
Document that transforming functions should be stateless
1 parent 1cca75f commit d00b19d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/codefx/libfx/collection/transform/package-info.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
* wrong type. If the suptype does not fully obey the <a
4747
* href="https://en.wikipedia.org/wiki/Liskov_substitution_principle">Liskov Substitution Principle</a> this can lead to
4848
* unexpected behavior.
49+
* <p>
50+
* Transforming functions should have no side effects. No guarantees are made regarding how often transformations are
51+
* called.
4952
* </p>
5053
* <h3>Type Safety</h3>
5154
* <p>

0 commit comments

Comments
 (0)