toggle menu
http4k
LOCAL
jvm
switch theme
search in API
http4k-format-moshi
/
org.http4k.format
/
IsAnInstanceOfAdapter
Is
An
Instance
Of
Adapter
abstract
class
IsAnInstanceOfAdapter
<
T
:
Any
>
(
clazz
:
KClass
<
T
>
,
resolveAdapter
:
Moshi
.
(
KClass
<
T
>
)
->
JsonAdapter
<
T
>
=
{ adapter(it.java) }
)
:
JsonAdapter.Factory
This adapter factory will capture ALL instances of a particular superclass/interface.
Inheritors
ThrowableAdapter
MapAdapter
ListAdapter
SetAdapter
Members
Constructors
Is
An
Instance
Of
Adapter
Link copied to clipboard
constructor
(
clazz
:
KClass
<
T
>
,
resolveAdapter
:
Moshi
.
(
KClass
<
T
>
)
->
JsonAdapter
<
T
>
=
{ adapter(it.java) }
)
Functions
create
Link copied to clipboard
open
override
fun
create
(
type
:
Type
,
annotations
:
Set
<
Annotation
>
,
moshi
:
Moshi
)
:
JsonAdapter
<
T
>
?