ScalaDocs: Tweet Stream
|
|
com/twitter/processing/JsonSugar.scala
]
trait
JsonSugar
extends
AnyRef
ss(jsonObj, "foo") {
myObj.foo = _
}
}Method Summary | |
def
|
sb
(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Boolean) => Unit) : Unit
Apply a function to a Boolean value held in a JSON Object (if it's non-null)
|
def
|
si
(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Int) => Unit) : Unit
Apply a function to an Int value held in a JSON Object (if it's non-null)
|
def
|
sl
(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Long) => Unit) : Unit
Apply a function to a Long value held in a JSON Object (if it's non-null)
|
def
|
ss
(json : com.google.gson.JsonObject, key : java.lang.String)(f : (java.lang.String) => Unit) : Unit
Apply a function to a String value held in a JSON Object (if it's non-null)
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
ss(json : com.google.gson.JsonObject, key : java.lang.String)(f : (java.lang.String) => Unit) : Unit
def
sb(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Boolean) => Unit) : Unit
def
sl(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Long) => Unit) : Unit
def
si(json : com.google.gson.JsonObject, key : java.lang.String)(f : (Int) => Unit) : Unit
ScalaDocs: Tweet Stream
|
|