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

pl.allegro.mobile.logic.operators.numeric.BetweenOperation.kt Maven / Gradle / Ivy

package pl.allegro.mobile.logic.operators.numeric

import pl.allegro.mobile.logic.ClientLogicElement
import pl.allegro.mobile.logic.ClientLogicMarker
import pl.allegro.mobile.logic.NumberElement

internal interface BetweenOperation {

    @ClientLogicMarker
    fun ClientLogicElement.between(min: ClientLogicElement, max: ClientLogicElement) =
        LessThanOperatorFactory().create(min, this, max)

    @ClientLogicMarker
    fun ClientLogicElement.between(min: ClientLogicElement, max: Number) = between(min, NumberElement(max))

    @ClientLogicMarker
    fun ClientLogicElement.between(min: Number, max: ClientLogicElement) = between(NumberElement(min), max)

    @ClientLogicMarker
    fun ClientLogicElement.between(min: Number, max: Number) = between(NumberElement(min), NumberElement(max))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy