Java friendly version of hasMatterValue

This commit is contained in:
DBotThePony 2022-11-19 16:06:22 +07:00
parent 3ca8f11c48
commit bbcf83e239
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -11,6 +11,11 @@ interface IMatterValue : Comparable<IMatterValue> {
val hasMatterValue: Boolean get() = matter.isPositive && complexity > 0.0 val hasMatterValue: Boolean get() = matter.isPositive && complexity > 0.0
/**
* Java friendly version of hasMatterValue
*/
fun hasMatterValue() = hasMatterValue
operator fun plus(other: IMatterValue): IMatterValue { operator fun plus(other: IMatterValue): IMatterValue {
return MatterValue(matter + other.matter, complexity + other.complexity) return MatterValue(matter + other.matter, complexity + other.complexity)
} }