From e5a26e62f270a53edc004a1ed7c5fbf84170666a Mon Sep 17 00:00:00 2001 From: Mitchell Yuwono Date: Thu, 1 Dec 2022 23:48:00 +1100 Subject: [PATCH] update docstring --- .../jackson/module/GenericTriStateModule.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arrow-integrations-jackson-module/src/main/kotlin/arrow/integrations/jackson/module/GenericTriStateModule.kt b/arrow-integrations-jackson-module/src/main/kotlin/arrow/integrations/jackson/module/GenericTriStateModule.kt index 06d3f2c..b7fbc88 100644 --- a/arrow-integrations-jackson-module/src/main/kotlin/arrow/integrations/jackson/module/GenericTriStateModule.kt +++ b/arrow-integrations-jackson-module/src/main/kotlin/arrow/integrations/jackson/module/GenericTriStateModule.kt @@ -49,10 +49,6 @@ import java.lang.reflect.Type * data class Defined(val value: T) : TriState() * } * - * private data class Nested(val value: String) - * - * private data class Example(val nested: TriState) - * * // defining jackson module for TriState * private val tristateModule: GenericTriStateModule> = * GenericTriStateModule( @@ -80,6 +76,12 @@ import java.lang.reflect.Type * ifDefined = { TriState.Defined(it) } * ) * ) + * + * // consuming TriState + * private data class Nested(val value: String) + * + * @JsonInclude(JsonInclude.Include.NON_ABSENT) + * private data class Example(val nested: TriState) * ``` */ public class GenericTriStateModule(