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

jvmMain.com.strumenta.kotlinmultiplatform.BitSet.kt Maven / Gradle / Ivy

There is a newer version: 0.0.18
Show newest version
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)
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy