Constants is now an object instead of a class

This commit is contained in:
Erik C. Thauvin 2023-01-30 23:23:27 -08:00
parent a272599b09
commit 81c1a40899

View file

@ -32,20 +32,11 @@
package net.thauvin.erik.bitly package net.thauvin.erik.bitly
/** Provides the constants for this package. */ /** Provides the constants for this package. */
open class Constants private constructor() { object Constants {
companion object Constants { /** The Bitly API base URL. */
/**
* The Bitly API base URL.
*
* @value `https://api-ssl.bitly.com/v4`
*/
const val API_BASE_URL = "https://api-ssl.bitly.com/v4" const val API_BASE_URL = "https://api-ssl.bitly.com/v4"
/** /** The API access token environment variable. */
* The API access token environment variable.
*
* @value `BITLY_ACCESS_TOKEN`
*/
const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN" const val ENV_ACCESS_TOKEN = "BITLY_ACCESS_TOKEN"
/** Empty String. */ /** Empty String. */
@ -54,18 +45,9 @@ open class Constants private constructor() {
/** Empty JSON Object. */ /** Empty JSON Object. */
const val EMPTY_JSON = "{}" const val EMPTY_JSON = "{}"
/** /** False */
* False
*
* @value `false`
*/
const val FALSE = false.toString() const val FALSE = false.toString()
/** /** True */
* True
*
* @value `true`
*/
const val TRUE = true.toString() const val TRUE = true.toString()
} }
}