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
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
lowerBound: Long
Minimum number of bits
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- SizeBound → AnyRef → Any
-
val
upperBound: Option[Long]
Maximum number of bits
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.
- def →[B](y: B): (SizeBound, B)
Shadowed Implicit Value Members
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from SizeBound to any2stringadd[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