-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish packages via GitHub Actions #14
* Fix build error
- Loading branch information
1 parent
6a92d44
commit 97365c1
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
frextensions/src/main/java/org/fog_rock/frextensions/ktx/operator/Operator.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.fog_rock.frextensions.ktx.operator | ||
|
||
fun and(vararg values: Boolean?): Boolean { | ||
var ret = false | ||
values.forEach { | ||
if (it != null) ret = ret.and(it) | ||
} | ||
return ret | ||
} | ||
|
||
fun or(vararg values: Boolean?): Boolean { | ||
var ret = false | ||
values.forEach { | ||
if (it != null) ret = ret.or(it) | ||
} | ||
return ret | ||
} | ||
|
||
fun xor(vararg values: Boolean?): Boolean { | ||
var ret = false | ||
values.forEach { | ||
if (it != null) ret = ret.xor(it) | ||
} | ||
return ret | ||
} |