Skip to content

Commit

Permalink
fix static jsnames in clause collections
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed May 28, 2020
1 parent 8906a14 commit 7b77b0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface ClauseMultiSet : ClauseCollection {
ReteClauseMultiSet(clauses)

@JvmStatic
@JsName("equals")
@JsName("areEquals")
fun equals(multiSet1: ClauseMultiSet, multiSet2: ClauseMultiSet): Boolean {
return itemWiseEquals(
multiSet1.sortedWith(TermComparator.DefaultComparator),
Expand All @@ -73,7 +73,7 @@ interface ClauseMultiSet : ClauseCollection {
}

@JvmStatic
@JsName("hashCode")
@JsName("computeHashCode")
fun hashCode(multiSet: ClauseMultiSet): Int {
return itemWiseHashCode(
ClauseMultiSet::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ interface ClauseQueue : ClauseCollection {
ReteClauseQueue(clauses)

@JvmStatic
@JsName("equals")
@JsName("areEquals")
fun equals(queue1: ClauseQueue, queue2: ClauseQueue): Boolean {
return itemWiseEquals(queue1, queue2)
}

@JvmStatic
@JsName("hashCode")
@JsName("computeHashCode")
fun hashCode(queue: ClauseQueue): Int {
return itemWiseHashCode(
ClauseQueue::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ interface MutableClauseMultiSet : ClauseMultiSet {
MutableReteClauseMultiSet(clauses)

@JvmStatic
@JsName("equals")
@JsName("areEquals")
fun equals(multiSet1: MutableClauseMultiSet, multiSet2: MutableClauseMultiSet): Boolean {
return ClauseMultiSet.equals(multiSet1, multiSet2)
}

@JvmStatic
@JsName("hashCode")
@JsName("computeHashCode")
fun hashCode(multiSet: MutableClauseMultiSet): Int {
return itemWiseHashCode(
MutableClauseMultiSet::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ interface MutableClauseQueue : ClauseQueue {
MutableReteClauseQueue(clauses)

@JvmStatic
@JsName("equals")
@JsName("areEquals")
fun equals(queue1: MutableClauseQueue, queue2: MutableClauseQueue): Boolean {
return ClauseQueue.equals(queue1, queue2)
}

@JvmStatic
@JsName("hashCode")
@JsName("computeHashCode")
fun hashCode(queue: MutableClauseQueue): Int {
return itemWiseHashCode(
MutableClauseQueue::class,
Expand Down

0 comments on commit 7b77b0d

Please sign in to comment.