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

com.autonomousapps.kit.android.AndroidStyleRes.kt Maven / Gradle / Ivy

The newest version!
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
package com.autonomousapps.kit.android

public class AndroidStyleRes(public val content: String) {

  override fun toString(): String = content

  internal fun isBlank(): Boolean = content.isBlank() || this == EMPTY

  public companion object {

    @JvmStatic
    public fun of(content: String): AndroidStyleRes = AndroidStyleRes(content)

    @JvmStatic
    public val EMPTY: AndroidStyleRes = AndroidStyleRes(
      """
        
        
        
      """.trimIndent()
    )

    @JvmStatic
    public val DEFAULT: AndroidStyleRes = AndroidStyleRes(
      """