Packages

sealed abstract class Size extends AnyRef

Extended integer representation of sizes.

This class is used to represent the lengths of matched strings. Unbounded values are generated by things like the Kleene star operator.

Size supports addition and multiplication. Additionally, Size has a total ordering (unbounded values are considered), so comparisons are also supported.

Sizes are required to be non-negative, i.e. 0 <= size < ∞.

Self Type
Size
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Size
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(rhs: Size): Size
  4. def +(rhs: Size): Size
  5. def <(rhs: Size): Boolean
  6. def <=(rhs: Size): Boolean
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def >(rhs: Size): Boolean
  9. def >=(rhs: Size): Boolean
  10. def approxString: String

    Show approximate as well as actual size as a string.

    Show approximate as well as actual size as a string.

    For unbounded or small sizes, this method is identical to toString.

    For finite sizes a million or larger, this method will return scientific notation to approximate the number followed by the full decimal representation in parenthesis.

    Size(0).approxString // 0 Size(123456).approxString // 123456 Size(1234567).approxString // 1.23 x 106 (1234567) Size(1234567).pow(3).approxString // 1.88 x 1018 (1881672302290562263) Size.Unbounded.approxString // ∞

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. def compare(rhs: Size): Int
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def isFinite: Boolean
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def max(rhs: Size): Size
  22. def min(rhs: Size): Size
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def pow(k: Int): Size
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    Size → AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped