Packages

final case class String255(str: String)(name: Option[String] = None) extends LengthLimitedString with Product with Serializable

Default LengthLimitedString that should be used when in doubt. 255 was chosen as it is also the limit used in the upstream code for, e.g., LedgerStrings in the upstream code

name

optionally set it to improve the error message. It is given as an extra argument, so the automatically generated equals-method doesn't use it for comparison

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. String255
  2. Serializable
  3. Product
  4. Equals
  5. LengthLimitedString
  6. AbstractLengthLimitedString
  7. NoCopy
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new String255(str: String)(name: Option[String] = None)

    name

    optionally set it to improve the error message. It is given as an extra argument, so the automatically generated equals-method doesn't use it for comparison

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asString1GB: String256M
  6. def asString300: String300
  7. def canEqual(a: Any): Boolean
    Definition Classes
    AbstractLengthLimitedString
    Annotations
    @SuppressWarnings()
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def copy(nothing: Nothing): Nothing
    Attributes
    protected
    Definition Classes
    NoCopy
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(that: Any): Boolean
    Definition Classes
    AbstractLengthLimitedString → AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AbstractLengthLimitedString → AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def maxLength: Int

    Maximum number of characters allowed.

    Maximum number of characters allowed.

    Must not be confused with storage space, which can be up to 4*maxLength in a UTF8 encoding

    Definition Classes
    String255AbstractLengthLimitedString
  16. val name: Option[String]
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def nonEmpty: Boolean
    Definition Classes
    AbstractLengthLimitedString
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. val str: String
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toProtoPrimitive: String
    Definition Classes
    AbstractLengthLimitedString
  25. def toString(): String
    Definition Classes
    AbstractLengthLimitedString → AnyRef → Any
  26. def tryConcatenate(that: String): LengthLimitedStringVar
    Definition Classes
    LengthLimitedString
  27. def tryConcatenate(that: LengthLimitedString): LengthLimitedStringVar
    Definition Classes
    LengthLimitedString
  28. def unwrap: String
    Definition Classes
    AbstractLengthLimitedString
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LengthLimitedString

Inherited from NoCopy

Inherited from AnyRef

Inherited from Any

Ungrouped