Skip to content

Commit 1d129e2

Browse files
add plus and from stub to omegatype
1 parent 2cc7e00 commit 1d129e2

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • stub/src/main/java/com/omega_r/libs/omegatypes

stub/src/main/java/com/omega_r/libs/omegatypes/Text.kt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,25 @@ import java.lang.RuntimeException
55

66
interface Text : Serializable, Textable {
77

8+
companion object {
9+
10+
@JvmStatic
11+
@JvmOverloads
12+
fun from(string: String, textStyle: TextStyle? = null): Text = throw Exception()
13+
14+
}
15+
816
interface StringHolder {
917

1018
fun getStringText(): String?
1119

1220
}
1321

22+
operator fun plus(text: Text): Text = throw Exception()
23+
1424
}
1525

1626
abstract class TextStyle : Serializable
1727

18-
fun String.toText(textStyle: TextStyle? = null): Text = throw RuntimeException()
28+
fun String.toText(textStyle: TextStyle? = null): Text = throw RuntimeException()
29+

0 commit comments

Comments
 (0)