case class ProgressBar(total: Long = 100, width: Int = 80, throughputUnit: String = "ops", throughputTransformer: (Double) ⇒ Double = identity) extends Product with Serializable
A widget for printing a dynamic progress bar in a console.
- total
the number representing the full progress bar
- width
the line width of the progress bar
- throughputUnit
the throughput unit that is being measured
- throughputTransformer
a function to transform the measured throughput value, before displaying it
- Alphabetic
- By Inheritance
- ProgressBar
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ProgressBar(total: Long = 100, width: Int = 80, throughputUnit: String = "ops", throughputTransformer: (Double) ⇒ Double = identity)
- total
the number representing the full progress bar
- width
the line width of the progress bar
- throughputUnit
the throughput unit that is being measured
- throughputTransformer
a function to transform the measured throughput value, before displaying it
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isFinished: Boolean
Returns
trueif this progress bar is full.Returns
trueif this progress bar is full.- returns
trueif this progress bar is full,falseotherwise.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val throughputTransformer: (Double) ⇒ Double
- val throughputUnit: String
-
def
tick(inc: Long): Unit
Increase the progress by the given number of units.
Increase the progress by the given number of units.
- inc
the number of progress units to increase
-
def
tick(): Unit
Increase the progress by one.
- val total: Long
-
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
- @native() @throws( ... )
- val width: Int