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

commonMain.it.unibo.tuprolog.bdd.impl.builder.SimpleBinaryDecisionDiagramTerminal.kt Maven / Gradle / Ivy

Go to download

Multi-platform library for representing and manipulating Binary Decision Diagrams

There is a newer version: 1.0.4
Show newest version
package it.unibo.tuprolog.bdd.impl.builder

import it.unibo.tuprolog.bdd.BinaryDecisionDiagram

/**
 * @author Jason Dellaluce
 */
internal data class SimpleBinaryDecisionDiagramTerminal>(
    override val truth: Boolean
) : BinaryDecisionDiagram.Terminal {

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as SimpleBinaryDecisionDiagramTerminal<*>

        if (truth != other.truth) return false

        return true
    }

    override fun hashCode(): Int {
        return truth.hashCode()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy