File tree 1 file changed +9
-1
lines changed
src/main/java/tools/jackson/databind
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,8 @@ public AnnotatedMember findJsonKeyAccessor() {
305
305
306
306
307
307
/**
308
- * Base implementation for lazily-constructed suppliers for {@link BeanDescription} instances.
308
+ * Interface for lazily-constructed suppliers for {@link BeanDescription} instances;
309
+ * extends plain {@link java.util.function.Supplier} with convenience accessors.
309
310
*/
310
311
public interface Supplier extends java .util .function .Supplier <BeanDescription >
311
312
{
@@ -327,6 +328,9 @@ default Annotations getClassAnnotations() {
327
328
public BeanDescription get ();
328
329
}
329
330
331
+ /**
332
+ * Partial implementation for lazily-constructed suppliers for {@link BeanDescription} instances.
333
+ */
330
334
public static abstract class LazySupplier implements Supplier
331
335
{
332
336
protected final JavaType _type ;
@@ -357,6 +361,10 @@ public BeanDescription get() {
357
361
protected abstract BeanDescription _construct (JavaType forType );
358
362
}
359
363
364
+ /**
365
+ * Simple {@link Supplier} implementation that just returns pre-constructed
366
+ * {@link BeanDescription} instance.
367
+ */
360
368
public static class EagerSupplier implements Supplier
361
369
{
362
370
protected final BeanDescription _beanDesc ;
You can’t perform that action at this time.
0 commit comments