trait ModelEquality extends ModelBase
A trait mixed in by Model, implementing the Scala equals contract. The equals method uses structural equality, not considering order. The equals method delegates to the underlying Map implementations.
Examples:
The following expressions are true: reqT> Model(Req("x"), Req("y")) == Model(Req("y"), Req("x")) res1: Boolean = true
reqT> ListModel(Req("x"), Req("y")) == HashModel(Req("y"), Req("x")) res2: Boolean = true
If you want to test equality also with respect to order, use toSeq: reqT> Model(Req("x"), Req("y")).toSeq == Model(Req("y"), Req("x")).toSeq res2: Boolean = false
- Self Type
- Model
- Source
- ModelEquality.scala
- Alphabetic
- By Inheritance
- ModelEquality
- ModelBase
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
empty: Model
- Definition Classes
- ModelBase
-
abstract
def
myMap: Map[Key, MapTo]
- Attributes
- protected[reqT.ModelBase]
- Definition Classes
- ModelBase
-
abstract
def
toHashMap: HashMap[Key, MapTo]
- Definition Classes
- ModelBase
-
abstract
def
toListMap: ListMap[Key, MapTo]
- Definition Classes
- ModelBase
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canEqual(other: Any): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
lazy val
elems: Vector[Elem]
- Definition Classes
- ModelBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- ModelEquality → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): java.lang.Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- ModelEquality → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterator: Iterator[Elem]
- Definition Classes
- ModelBase
-
def
mapIterator: Iterator[(Key, MapTo)]
- Definition Classes
- ModelBase
-
val
myType: TypeObject
- Definition Classes
- ModelBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
p(): Unit
- Definition Classes
- ModelBase
-
def
pp(): Unit
- Definition Classes
- ModelBase
-
def
prettyPrint(): Unit
- Definition Classes
- ModelBase
-
def
save(fileName: String): Unit
- Definition Classes
- ModelBase
-
val
stringPrefix: String
- Definition Classes
- ModelBase
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toGraph: String
- Definition Classes
- ModelBase
-
def
toHashModel: Model
- Definition Classes
- ModelBase
-
def
toHtml: String
- Definition Classes
- ModelBase
-
def
toHtmlBody: String
- Definition Classes
- ModelBase
-
lazy val
toIterable: Iterable[Elem]
- Definition Classes
- ModelBase
-
def
toLatex: String
- Definition Classes
- ModelBase
-
def
toLatexBody: String
- Definition Classes
- ModelBase
-
lazy val
toList: List[Elem]
- Definition Classes
- ModelBase
-
def
toListModel: Model
- Definition Classes
- ModelBase
-
lazy val
toMap: Map[Key, MapTo]
- Definition Classes
- ModelBase
-
lazy val
toSeq: Seq[Elem]
- Definition Classes
- ModelBase
-
lazy val
toSet: Set[Elem]
- Definition Classes
- ModelBase
-
def
toString(): String
- Definition Classes
- ModelBase → AnyRef → Any
-
lazy val
toStringBody: String
- Definition Classes
- ModelBase
-
lazy val
toStringSimple: String
- Definition Classes
- ModelBase
-
lazy val
toStringSimpleLineBreak: String
- Definition Classes
- ModelBase
-
def
toTable: String
- Definition Classes
- ModelBase
-
def
toText: String
- Definition Classes
- ModelBase
-
lazy val
toVector: Vector[Elem]
- Definition Classes
- ModelBase
-
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
- @native() @throws( ... )