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

pl.allegro.mobile.logic.operators.string.ToArrayOperation.kt Maven / Gradle / Ivy

package pl.allegro.mobile.logic.operators.string

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

internal interface ToArrayOperation {
    /**
     * Splits this char sequence to a list of strings.
     * @receiver Character sequence or client side operation that returns string
     * @return toArray operator, evaluated client side.
     * Operator returns this string split into singular characters list.
     * @see: ToArrayOperationTest
     */
    @ClientLogicMarker
    fun ClientLogicElement.toCharArray() = ToArrayOperatorFactory().create(this)
}

private class ToArrayOperatorFactory {
    fun create(vararg elements: ClientLogicElement) = ClientLogicOperator("toArray", *elements)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy