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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- String255
- Serializable
- Product
- Equals
- LengthLimitedString
- AbstractLengthLimitedString
- NoCopy
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asString1GB: String256M
- def asString300: String300
- def canEqual(a: Any): Boolean
- Definition Classes
- AbstractLengthLimitedString
- Annotations
- @SuppressWarnings()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def copy(nothing: Nothing): Nothing
- Attributes
- protected
- Definition Classes
- NoCopy
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- AbstractLengthLimitedString → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AbstractLengthLimitedString → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- String255 → AbstractLengthLimitedString
- val name: Option[String]
- Definition Classes
- String255 → AbstractLengthLimitedString
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- Definition Classes
- AbstractLengthLimitedString
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val str: String
- Definition Classes
- String255 → AbstractLengthLimitedString
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toProtoPrimitive: String
- Definition Classes
- AbstractLengthLimitedString
- def toString(): String
- Definition Classes
- AbstractLengthLimitedString → AnyRef → Any
- def tryConcatenate(that: String): LengthLimitedStringVar
- Definition Classes
- LengthLimitedString
- def tryConcatenate(that: LengthLimitedString): LengthLimitedStringVar
- Definition Classes
- LengthLimitedString
- def unwrap: String
- Definition Classes
- AbstractLengthLimitedString
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])