Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
myuwono committed Dec 1, 2022
1 parent 9a92a5f commit e5a26e6
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ import java.lang.reflect.Type
* data class Defined<T>(val value: T) : TriState<T>()
* }
*
* private data class Nested(val value: String)
*
* private data class Example(val nested: TriState<Nested>)
*
* // defining jackson module for TriState<T>
* private val tristateModule: GenericTriStateModule<TriState<*>> =
* GenericTriStateModule(
Expand Down Expand Up @@ -80,6 +76,12 @@ import java.lang.reflect.Type
* ifDefined = { TriState.Defined(it) }
* )
* )
*
* // consuming TriState<T>
* private data class Nested(val value: String)
*
* @JsonInclude(JsonInclude.Include.NON_ABSENT)
* private data class Example(val nested: TriState<Nested>)
* ```
*/
public class GenericTriStateModule<T>(
Expand Down

0 comments on commit e5a26e6

Please sign in to comment.