All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.jackson.module.kotlin.KotlinMixins.kt Maven / Gradle / Ivy

Go to download

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.

The newest version!
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