-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor
EmailAddress.Companion.fromStringOrNull(Any, Any)
Ref: #635
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 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
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ void fromStringOrNull_Any() { | |
System.out.println(address != null); // true | ||
} // END | ||
|
||
void fromStringOrNull_Any_Any_Sample() { | ||
void fromStringOrNull_Any_Any() { | ||
final Object value = "[email protected]"; | ||
final Object pattern = "^[a-z]+@[a-z]+\\.[a-z]+$"; | ||
final EmailAddress address = | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ internal object EmailAddressCompanionKotlinSample { | |
} // END | ||
|
||
@Suppress("FunctionName") | ||
fun fromStringOrNull_Any_Any_Sample() { | ||
fun fromStringOrNull_Any_Any() { | ||
val value: Any = "[email protected]" | ||
val pattern: Any = "^[a-z]+@[a-z]+\\.[a-z]+\$" | ||
val address: EmailAddress? = | ||
|
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