Bimba.git

ref: 6aa58435b7ad5e0f726a90a7c4f7e286c3913e94

app/src/main/java/ml/adamsprogs/bimba/collections/IndexableTreeSet.kt


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
package ml.adamsprogs.bimba.collections

import java.util.TreeSet

class IndexableTreeSet<T>: TreeSet<T>() {
    operator fun get(position: Int): T {
        @Suppress("UNCHECKED_CAST")
        return this.toArray()[position] as T
    }

}