com.fasterxml.jackson.module.kotlin.KotlinMixins.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-module-kotlin Show documentation
Show all versions of jackson-module-kotlin Show documentation
Add-on module for Jackson (https://github.com/FasterXML/jackson/) to support
Kotlin language, specifically introspection of method/constructor parameter names,
without having to add explicit property name annotation.
package com.fasterxml.jackson.module.kotlin
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonProperty
internal abstract class ClosedRangeMixin @JsonCreator constructor(public val start: T, @get:JsonProperty("end") public val endInclusive: T) {
@JsonIgnore abstract public fun getEnd(): T
@JsonIgnore abstract public fun getFirst(): T
@JsonIgnore abstract public fun getLast(): T
@JsonIgnore abstract public fun getIncrement(): T
@JsonIgnore abstract public fun isEmpty(): Boolean
@JsonIgnore abstract public fun getStep(): T
@JsonIgnore abstract public fun getEndExclusive(): T
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy