package com.github.kerubistan.kerub.utils

fun <T> T.equalsAnyOf(vararg others: T) = others.any { this == it }

fun String.equalsAnyIgnoreCase(vararg others: String) = others.any { it.equals(this, ignoreCase = true) }

/**
 * Proudly and intentionally doing nothing.
 */
inline fun NOP(): Unit {}

package com.github.kerubistan.kerub.utils

fun <T> T.equalsAnyOf(vararg others: T) = others.any { this == it }

fun String.equalsAnyIgnoreCase(vararg others: String) = others.any { it.equals(this, ignoreCase = true) }

/**
 * Proudly and intentionally doing nothing.
 */
inline fun NOP(): Unit { /*the expected nothing, inlined*/ }

Comment on why the NOP method is empty (sonar auto-bugs)
Comment on why the NOP method is empty
(sonar auto-bugs)

Signed-off-by: Laszlo Hornyak <b67b79795179d8ff38e8fa896b513991ab7f1811@gmail.com>

K0zka/kerub,kerubistan/kerub,kerubistan/kerub,kerubistan/kerub,K0zka/kerub,K0zka/kerub