sdk-common / com.tomtom.online.sdk.common.functional / Consumer1

Consumer1

@FunctionalInterface interface Consumer1<T : Any!>

Represents base interface for all functions and function-like objects that consume a value and don't return a result. Most of the time this interface is used to pass behaviour to some other code, in many cases enclosing in itself the surrounding state and deferring the computation (creating a clojure).

Functions

accept

abstract fun accept(value: T): Unit

Consumes the Consumer1 argument.