net.bjoernpetersen.musicbot.api.config.NonnullConfigChecker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of musicbot Show documentation
Show all versions of musicbot Show documentation
Core library of MusicBot, which plays music from various providers.
package net.bjoernpetersen.musicbot.api.config
import net.bjoernpetersen.musicbot.spi.config.ConfigChecker
/**
* A config checker that accepts any value except null.
*/
object NonnullConfigChecker : ConfigChecker {
override fun invoke(p1: Any?): String? = if (p1 == null) "Required"
else null
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy