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

name.remal.java.time.Duration-generated.kt Maven / Gradle / Ivy

package name.remal
import java.time.Duration
import java.time.Duration.ZERO
import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeUnit.*

inline fun  Duration.callAwait(crossinline awaitMethod: (Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(toMillis(), MILLISECONDS)
    else -> awaitMethod(toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, crossinline awaitMethod: (P1, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, crossinline awaitMethod: (P1, P2, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, crossinline awaitMethod: (P1, P2, P3, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, crossinline awaitMethod: (P1, P2, P3, P4, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, crossinline awaitMethod: (P1, P2, P3, P4, P5, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, param16: P16, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, param16: P16, param17: P17, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, param16: P16, param17: P17, param18: P18, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, param16: P16, param17: P17, param18: P18, param19: P19, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, toNanos(), NANOSECONDS)
}

inline fun  Duration.callAwait(param1: P1, param2: P2, param3: P3, param4: P4, param5: P5, param6: P6, param7: P7, param8: P8, param9: P9, param10: P10, param11: P11, param12: P12, param13: P13, param14: P14, param15: P15, param16: P16, param17: P17, param18: P18, param19: P19, param20: P20, crossinline awaitMethod: (P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19, P20, Long, TimeUnit) -> R): R = when {
    ZERO == this || 30 * 24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, seconds, SECONDS)
    24 * 3600 <= seconds -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, toMillis(), MILLISECONDS)
    else -> awaitMethod(param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, toNanos(), NANOSECONDS)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy