File tree 1 file changed +29
-0
lines changed
src/main/java/com/fasterxml/jackson/databind/type
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com .fasterxml .jackson .databind .type ;
2
+
3
+ import com .fasterxml .jackson .databind .JavaType ;
4
+
5
+ /**
6
+ * Specialized {@link SimpleType} for types that are allow iteration
7
+ * over Collection(-like) types: this includes types like
8
+ * {@link java.util.Iterator}.
9
+ * Referenced type is accessible using {@link #getContentType()}.
10
+ *
11
+ * @since 2.16
12
+ */
13
+ public abstract class IterationType extends SimpleType
14
+ {
15
+ private static final long serialVersionUID = 1L ;
16
+
17
+ protected final JavaType _iteratedType ;
18
+
19
+ /**
20
+ * Constructor used when upgrading into this type (via {@link #upgradeFrom},
21
+ * the usual way for {@link IterationType}s to come into existence.
22
+ * Sets up what is considered the "base" reference type
23
+ */
24
+ protected IterationType (TypeBase base , JavaType iteratedType )
25
+ {
26
+ super (base );
27
+ _iteratedType = iteratedType ;
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments