All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kotlinnlp.utils.progressindicator.README.md Maven / Gradle / Ivy

Go to download

Utils is a Kotlin package containing utilities for the KotlinNLP library.

The newest version!
# ProgressIndicator

ProgressIndicator implements different indicators to track a progress: 
* Bar ```|███████████ | 95%```
* Icon ```/``` ```-``` ```\ ``` ```|```
* Percentage ```[60%]```

## Getting Started

Simply declare a ProgressIndicator passing it the total amount of steps to track and the call the `tick()` method to 
fo forward of one single step. Is it possible to pass it the amount of steps setting the `amount` parameter.
```kotlin
import com.kotlinnlp.utils.progressindicator.ProgressIndicatorBar

val progress = ProgressIndicatorBar(1000)

(0 until 1000).forEach {
  progress.tick()
  Thread.sleep(10)
}
```

### Examples

Try some examples running the files in the `examples/progressindicator` folder.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy