com.github.gchudnov.mtg.diagram.internal.AsciiAnnotation.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mtg-diagram-ascii_3 Show documentation
Show all versions of mtg-diagram-ascii_3 Show documentation
Intervals, Relations, and Algorithms
The newest version!
package com.github.gchudnov.mtg.diagram.internal
/**
* ASCII Annotation
*/
private[diagram] final case class AsciiAnnotation(value: String):
def isEmpty: Boolean =
value.isEmpty
def nonEmpty: Boolean =
value.nonEmpty
private[diagram] object AsciiAnnotation:
lazy val empty: AsciiAnnotation =
AsciiAnnotation("")
def make(value: String): AsciiAnnotation =
AsciiAnnotation(value)