case class Writer[I](path: Path = Path(Nil)) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Writer
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def \(child: PathNode): Writer[I]
- def \(idx: Int): Writer[I]
- def \(key: String): Writer[I]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val path: Path
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
write[O, J](format: ⇒ WriteLike[O, J])(implicit w: (Path) ⇒ WriteLike[J, I]): Write[O, I]
Create a Write that convert data to type
I
, and put it at Pathpath
Create a Write that convert data to type
I
, and put it at Pathpath
val w = To[JsObject] { __ => (__ \ "date").write(date("yyyy-MM-dd"")) } w.writes(new Date()) == Json.obj("date" -> "2013-10-3")
- Note
This method works fine with recursive writes
-
def
write[O](implicit w: (Path) ⇒ WriteLike[O, I]): Write[O, I]
Create a Write that convert data to type
I
, and put it at Pathpath
Create a Write that convert data to type
I
, and put it at Pathpath
val w = To[JsObject] { __ => (__ \ "informations").write[Seq[String]]) } w.writes(Seq("foo", "bar")) == Json.obj("informations" -> Seq("foo", "bar"))
- Note
This method works fine with recursive writes