Java friendly version of hasMatterValue
This commit is contained in:
parent
3ca8f11c48
commit
bbcf83e239
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user