File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed
src/main/java/org/codefx/libfx/collection/transform Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change 18
18
* the transformation {@code null -> null}. The transforming functions specified during construction neither have to
19
19
* handle that case nor are they allowed to produce null elements.
20
20
* <p>
21
- * All method calls (of abstract and default methods existing in JDK 8) are forwarded to <b>the same method</b> on the
22
- * wrapped collection. This implies that all guarantees made by such methods (e.g. regarding atomicity) are upheld by
23
- * the transformation.
24
- * <p>
25
21
* If the {@link #stream() stream} returned by this collection is told to {@link java.util.stream.Stream#sorted() sort}
26
22
* itself, it will do so on the base of the comparator returned by the inner collection's spliterator (e.g. based on the
27
23
* natural order of {@code I} if it has one).
Original file line number Diff line number Diff line change 18
18
* transformation {@code null -> null}. The transforming functions specified during construction neither have to handle
19
19
* that case nor are they allowed to produce null elements.
20
20
* <p>
21
- * All method calls (of abstract and default methods existing in JDK 8) are forwarded to <b>the same method</b> on the
22
- * wrapped list. This implies that all guarantees made by such methods (e.g. regarding atomicity) are upheld by the
23
- * transformation.
24
- * <p>
25
21
* If the {@link #stream() stream} returned by this list is told to {@link java.util.stream.Stream#sorted() sort}
26
22
* itself, it will do so on the base of the comparator returned by the inner list's spliterator (e.g. based on the
27
23
* natural order of {@code O} if it has one).
Original file line number Diff line number Diff line change 18
18
* the transformation {@code null -> null}. The transforming functions specified during construction neither have to
19
19
* handle that case nor are they allowed to produce null elements.
20
20
* <p>
21
- * All method calls (of abstract and default methods existing in JDK 8) are forwarded to <b>the same method</b> on the
22
- * wrapped map. This implies that all guarantees made by such methods (e.g. regarding atomicity) are upheld by the
23
- * transformation.
24
- * <p>
25
21
* If the {@link java.util.stream.Stream streams} returned by this map's views are told to
26
22
* {@link java.util.stream.Stream#sorted() sort} themself, they will do so on the base of the comparator returned by the
27
23
* inner map view's spliterator (e.g. based on the natural order of {@code IK} or {@code IV} if it has one).
Original file line number Diff line number Diff line change 18
18
* transformation {@code null -> null}. The transforming functions specified during construction neither have to handle
19
19
* that case nor are they allowed to produce null elements.
20
20
* <p>
21
- * All method calls (of abstract and default methods existing in JDK 8) are forwarded to <b>the same method</b> on the
22
- * wrapped set. This implies that all guarantees made by such methods (e.g. regarding atomicity) are upheld by the
23
- * transformation.
24
- * <p>
25
21
* If the {@link #stream() stream} returned by this set is told to {@link java.util.stream.Stream#sorted() sort} itself,
26
22
* it will do so on the base of the comparator returned by the inner sets's spliterator (e.g. based on the natural order
27
23
* of {@code I} if it has one).
Original file line number Diff line number Diff line change 12
12
* the <i>inner type</i>. The transforming collection and its generic type are referred to as <i>outer collection</i>
13
13
* and <i>outer type</i>, respectively.
14
14
* </p>
15
- * <h2>Details</h2> <h3>Transformation</h3>
15
+ * <h2>Details</h2>
16
+ * <p>
17
+ * The following details are important to use transforming collections without unexpected problems.
18
+ * </p>
19
+ * <h3>Forwarding</h3>
20
+ * <p>
21
+ * Unless otherwise noted the views forward all method calls (of abstract and default methods existing in JDK 8) to
22
+ * <b>the same method</b> on the inner collection. This implies that all guarantees made by such methods (e.g. regarding
23
+ * atomicity) are upheld by the transformation.
24
+ * </p>
25
+ * <h3>Transformation</h3>
16
26
* <p>
17
27
* The transformation is computed with a pair of functions. One is used to transform outer elements to inner elements
18
28
* and another one for the other direction. In the case of a {@link java.util.Map Map} two such pairs exist: one for
You can’t perform that action at this time.
0 commit comments