Created
March 1, 2017 15:45
-
-
Save hongwei1/bc522d15fa6ddd32ad19fc645f7ae909 to your computer and use it in GitHub Desktop.
box
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
import net.liftweb.common.{Box, Empty, Failure, Full} | |
//val option: Option[Null] = Option(null) | |
val box1 = Full(null) | |
val box2 = Full("") | |
val box3 = Empty | |
val box4 = None | |
val box5 = Failure("hongwei") | |
box3.isEmpty | |
val option1: Option[Null] = Option(null) | |
val option2 = Empty | |
option1.isEmpty | |
option2.isEmpty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment