jvmMain.com.strumenta.kotlinmultiplatform.BitSet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr-kotlin-runtime-jvm Show documentation
Show all versions of antlr-kotlin-runtime-jvm Show documentation
Kotlin multiplatform port of ANTLR
package com.strumenta.kotlinmultiplatform
actual class BitSet {
private val _wrapped = java.util.BitSet()
actual constructor()
actual fun set(bitIndex: Int) {
_wrapped.set(bitIndex)
}
actual fun clear(bitIndex: Int) {
_wrapped.clear(bitIndex)
}
actual fun get(bitIndex: Int): Boolean {
return _wrapped.get(bitIndex)
}
actual fun cardinality(): Int {
return _wrapped.cardinality()
}
actual fun nextSetBit(i: Int): Int {
return _wrapped.nextSetBit(i)
}
actual fun or(alts: BitSet) {
return _wrapped.or(alts._wrapped)
}
}