-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
224 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ | |
|
||
# Site | ||
/site | ||
|
||
# Jenv | ||
.java-version |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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
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
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
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,18 @@ | ||
package com.laimiux.lce | ||
|
||
/** | ||
* LT stands for Loading / Error. A type that represents either loading of type [L] | ||
* or error of type [E]. | ||
* | ||
* Note: It's an intermediary type to enable certain APIs and should rarely be used. | ||
*/ | ||
interface LE<out L, out E> { | ||
|
||
fun isLoading(): Boolean | ||
fun isError(): Boolean | ||
|
||
fun loadingOrNull(): L? | ||
fun errorOrNull(): E? | ||
|
||
fun asLceType(): Type<L, Nothing, E> | ||
} |
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,18 @@ | ||
package com.laimiux.lce | ||
|
||
/** | ||
* LT stands for Loading / Throwable. A type that represents either loading of type [L] | ||
* or error of type [Throwable]. | ||
* | ||
* Note: It's an intermediary type to enable certain APIs and should rarely be used. | ||
*/ | ||
interface LT<out L> { | ||
|
||
fun isLoading(): Boolean | ||
fun isError(): Boolean | ||
|
||
fun loadingOrNull(): L? | ||
fun errorOrNull(): Throwable? | ||
|
||
fun asLceType(): Type<L, Nothing, Throwable> | ||
} |
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
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,18 @@ | ||
package com.laimiux.lce | ||
|
||
/** | ||
* UE stands for Unit / Error. A type that represents either loading of type [Unit] | ||
* or error of type [E]. | ||
* | ||
* Note: It's an intermediary type to enable certain APIs and should rarely be used. | ||
*/ | ||
interface UE<out E> { | ||
|
||
fun isLoading(): Boolean | ||
fun isError(): Boolean | ||
|
||
fun loadingOrNull(): Any? | ||
fun errorOrNull(): E? | ||
|
||
fun asLceType(): Type<Any?, Nothing, E> | ||
} |
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,18 @@ | ||
package com.laimiux.lce | ||
|
||
/** | ||
* UT stands for Unit / Throwable. A type that represents either loading of type [Unit] | ||
* or error of type [Throwable]. | ||
* | ||
* Note: It's an intermediary type to enable certain APIs and should rarely be used. | ||
*/ | ||
interface UT { | ||
|
||
fun isLoading(): Boolean | ||
fun isError(): Boolean | ||
|
||
fun loadingOrNull(): Any? | ||
fun errorOrNull(): Throwable? | ||
|
||
fun asLceType(): Type<Any?, Nothing, Throwable> | ||
} |
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