Skip to content

Commit

Permalink
[properties] update property extensions to accept nullable values on …
Browse files Browse the repository at this point in the history
…proper methods.
  • Loading branch information
agrosner committed Aug 26, 2017
1 parent 32dd5e1 commit d624e8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import com.raizlabs.android.dbflow.sql.language.property.Property
* Description: Provides property methods in via infix functions.
*/

infix fun <T : Any> Property<T>.eq(value: T) = this.eq(value)
infix fun <T : Any> Property<T>.eq(value: T?) = this.eq(value)

infix fun <T : Any> Property<T>.`is`(value: T) = this.`is`(value)
infix fun <T : Any> Property<T>.`is`(value: T?) = this.`is`(value)

infix fun <T : Any> Property<T>.isNot(value: T) = this.isNot(value)
infix fun <T : Any> Property<T>.isNot(value: T?) = this.isNot(value)

infix fun <T : Any> Property<T>.notEq(value: T) = this.notEq(value)
infix fun <T : Any> Property<T>.notEq(value: T?) = this.notEq(value)

infix fun <T : Any> Property<T>.like(value: String) = this.like(value)

Expand Down
2 changes: 1 addition & 1 deletion usage2
Submodule usage2 updated 1 files
+0 −1 MultipleModules.md

0 comments on commit d624e8f

Please sign in to comment.