final case class SizeBound(lowerBound: Long, upperBound: Option[Long]) extends Product with Serializable
Bounds the size, in bits, of the binary encoding of a codec -- i.e., it provides a lower bound and an upper bound on the size of bit vectors returned as a result of encoding.
- lowerBound
Minimum number of bits
- upperBound
Maximum number of bits
- Source
- SizeBound.scala
- Alphabetic
- By Inheritance
- SizeBound
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SizeBound(lowerBound: Long, upperBound: Option[Long])
- lowerBound
Minimum number of bits
- upperBound
Maximum number of bits
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def *(n: Long): SizeBound
Multiplies this size bound by the specified scalar.
- def +(that: SizeBound): SizeBound
Adds the specified size bound to this size bound.
- def ->[B](y: B): (SizeBound, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atLeast: SizeBound
Returns a new bound with the upper bound removed.
- def atMost: SizeBound
Returns a new bound with the lower bound reset to 0.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (SizeBound) => Boolean, msg: => Any): SizeBound
- def ensuring(cond: (SizeBound) => Boolean): SizeBound
- def ensuring(cond: Boolean, msg: => Any): SizeBound
- def ensuring(cond: Boolean): SizeBound
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exact: Option[Long]
Returns the exact size of the encoded bits.
Returns the exact size of the encoded bits. Defined when the lower bound is equal to the upper bound.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lowerBound: Long
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- SizeBound → AnyRef → Any
- val upperBound: Option[Long]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def |(that: SizeBound): SizeBound
ORs the specified size bound with this size bound, resulting in a new bound which has the minimum lower bound and maximum upper bound.
Shadowed Implicit Value Members
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from SizeBound toany2stringadd[SizeBound] performed by method any2stringadd in scala.Predef.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(sizeBound: any2stringadd[SizeBound]).+(other)
- Definition Classes
- any2stringadd
Deprecated Value Members
- def →[B](y: B): (SizeBound, B)
- Implicit
- This member is added by an implicit conversion from SizeBound toArrowAssoc[SizeBound] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.