ariane/app/src/main/java/oppen/tva/io/history/Tab.kt

23 lines
427 B
Kotlin

package oppen.tva.io.history
import java.net.URI
class Tab(val index: Int) {
val history = mutableListOf<URI>()
fun add(uri: URI){
history.add(uri)
}
fun add(address: String){
history.add(URI.create(address))
}
companion object{
fun new(index: Int, address: String): Tab {
val tab = Tab(index)
tab.add(address)
return tab
}
}
}