case class YSuccess(node: YNode) extends YObj with Product with Serializable
- Alphabetic
- By Inheritance
- YSuccess
- Serializable
- Serializable
- Product
- Equals
- YObj
- Dynamic
- YNodeLike
- YValueLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
!=(b: YValueLike): Boolean
- Definition Classes
- YValueLike
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
==(b: YValueLike): Boolean
- Definition Classes
- YValueLike
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(key: YNode): YObj
Dereference a Node as a Map[YNode,_] when fails it returns an YError.
-
def
apply(key: Int): YObj
Dereference a Node as an Array or if it is a Map as a Map[Int, _], when fails it returns an YError
-
final
def
applyDynamic(key: String)(index: Int): YObj
Dereference the node as a Map and then as an Array
Dereference the node as a Map and then as an Array
- Definition Classes
- YObj
-
def
as[T](validation: (T) ⇒ Option[String])(implicit conversion: YRead[T], iv: IllegalTypeHandler): T
Tries to convert the node into a T, throwing an exception if it can't.
Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined. An additional validation can be provided
- Definition Classes
- YNodeLike
-
def
as[T](implicit conversion: YRead[T], iv: IllegalTypeHandler): T
Tries to convert the node into a T, throwing an exception if it can't.
Tries to convert the node into a T, throwing an exception if it can't. An implicit YRead[T] must be defined.
- Definition Classes
- YNodeLike
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asOption[T](implicit arg0: YRead[T]): Option[T]
Tries to convert the node into a T.
Tries to convert the node into a T. An implicit YRead[T] must be defined. Any error is mapped to None
- Definition Classes
- YNodeLike
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(obj: Any): Boolean
- Definition Classes
- YSuccess → Equals → AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
isDefined: Boolean
Returns true if the option is an instance of YSuccess, false otherwise.
-
def
isError: Boolean
Returns true if the option is YFail, false otherwise.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isNull: Boolean
- Definition Classes
- YNodeLike
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val node: YNode
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
obj: YObj
Returns the Node as an YObj
-
def
selectDynamic(key: String): YObj
Dereference the node as a Map it not a YMap or the key is not found it returns YNode.Null
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tagType: YType
- def thisNode: YNode
-
def
to[T](validation: (T) ⇒ Option[String])(implicit arg0: YRead[T]): Either[YError, T]
Tries to convert the node, then if successful performs an additional validation that must return Some(errorMessage) or None.
-
def
to[T](implicit arg0: YRead[T]): Either[YError, T]
Tries to convert the node and return either the value converted or an YError
-
def
toString(): String
- Definition Classes
- YSuccess → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated