alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td> 20 </tr> <td> Bob <td> 22 </tr> <td> James <td> 19 </tr> </table> </body> </html> y = <html> <body> <table cellspacing="0" cellpadding="2"> <tr> <th>Last Name <th>First Name </tr> <tr> <td> Tom <td> 20 </tr> <td> Bob <td> 22 </tr> <td> James <td> 19 </tr> </table> </body> </html> x equals y: true, y equals x: true x = Tim y = Tim x equals y: true, y equals x: true x = Bob y = Bob x equals y: true, y equals x: true x = John y = John x equals y: true, y equals x: true x = Bill y = Bill x equals y: true, y equals x: true x = Paul y = Paul x equals y: true, y equals x: true 1 2 1 2 x = UnrolledBuffer(one, two) y = UnrolledBuffer(one, two) x equals y: true, y equals x: true x = ParArray(abc, def, etc) y = ParArray(abc, def, etc) x equals y: true, y equals x: true x = ParHashMap(1 -> 2, 2 -> 4) y = ParHashMap(1 -> 2, 2 -> 4) x equals y: true, y equals x: true x = ParHashSet(2, 1, 3) y = ParHashSet(2, 1, 3) x equals y: true, y equals x: true x = ParRange(0, 1, 2, 3, 4) y = ParRange(0, 1, 2, 3, 4) x equals y: true, y equals x: true x = ParRange(0, 1, 2, 3) y = ParRange(0, 1, 2, 3) x equals y: true, y equals x: true x = ParMap(5 -> 1, 10 -> 2) y = ParMap(5 -> 1, 10 -> 2) x equals y: true, y equals x: true x = ParSet(two, one) y = ParSet(two, one) x equals y: true, y equals x: true

Other Scala examples (source code examples)

Here is a short list of links related to this Scala serialization.check source code file:

Scala example source code file (serialization.check)

This example Scala source code file (serialization.check) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

a, a, b, bitset, bitset, bob, c, list, list, map, map, parrange, stack, treeset

The Scala serialization.check source code

a1 = Array[1,2,3]
_a1 = Array[1,2,3]
arrayEquals(a1, _a1): true

c1 = Cell(a)
_c1 = Cell(a)
c1 eq _c1: false, _c1 eq c1: false
c1 equals _c1: true, _c1 equals c1: true

e1 = Left(1)
_e1 = Left(1)
e1 eq _e1: false, _e1 eq e1: false
e1 equals _e1: true, _e1 equals e1: true

x7 = RoundingMode
y7 = RoundingMode
x7 eq y7: true, y7 eq x7: true
x7 equals y7: true, y7 equals x7: true

x8 = WeekDay
y8 = WeekDay
x8 eq y8: true, y8 eq x8: true
x8 equals y8: true, y8 equals x8: true

x9 = UP
y9 = UP
x9 eq y9: true, y9 eq x9: true
x9 equals y9: true, y9 equals x9: true

x10 = Monday
y10 = Monday
x10 eq y10: true, y10 eq x10: true
x10 equals y10: true, y10 equals x10: true

x9 eq x10: false, x10 eq x9: false
x9 equals x10: false, x10 equals x9: false
x9 eq y10: false, y10 eq x9: false
x9 equals y10: false, y10 equals x9: false

f1 = <na>
_f1 = <na>
f1(2): 4, _f1(2): 4

xs0 = List(1, 2, 3)
_xs0 = List(1, 2, 3)
xs0 eq _xs0: false, _xs0 eq xs0: false
xs0 equals _xs0: true, _xs0 equals xs0: true

xs1 = List()
_xs1 = List()
xs1 eq _xs1: true, _xs1 eq xs1: true

o1 = None
_o1 = None
o1 eq _o1: true, _o1 eq o1: true

o2 = Some(1)
_o2 = Some(1)
o2 eq _o2: false, _o2 eq o2: false
o2 equals _o2: true, _o2 equals o2: true

s1 = 'hello
_s1 = 'hello
s1 eq _s1: true, _s1 eq s1: true
s1 equals _s1: true, _s1 equals s1: true

t1 = (BannerLimit,12345)
_t1 = (BannerLimit,12345)
t1 eq _t1: false, _t1 eq t1: false
t1 equals _t1: true, _t1 equals t1: true

x = BitSet(1, 2)
y = BitSet(1, 2)
x equals y: true, y equals x: true

x = BitSet(2, 3)
y = BitSet(2, 3)
x equals y: true, y equals x: true

x = Map(1 -> A, 2 -> B, 3 -> C)
y = Map(1 -> A, 2 -> B, 3 -> C)
x equals y: true, y equals x: true

x = Set(1, 2)
y = Set(1, 2)
x equals y: true, y equals x: true

x = List((buffers,20), (layers,2), (title,3))
y = List((buffers,20), (layers,2), (title,3))
x equals y: true, y equals x: true

x = Map(buffers -> 20, layers -> 2, title -> 3)
y = Map(buffers -> 20, layers -> 2, title -> 3)
x equals y: true, y equals x: true

x = ListSet(5, 3)
y = ListSet(5, 3)
x equals y: true, y equals x: true

x = Queue(a, b, c)
y = Queue(a, b, c)
x equals y: true, y equals x: true

x = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
y = Range(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
x equals y: true, y equals x: true

x = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
y = NumericRange(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
x equals y: true, y equals x: true

x = Map(1 -> A, 2 -> B, 3 -> C)
y = Map(1 -> A, 2 -> B, 3 -> C)
x equals y: true, y equals x: true

x = TreeSet(1, 2, 3)
y = TreeSet(1, 2, 3)
x equals y: true, y equals x: true

x = Stack(c, b, a)
y = Stack(c, b, a)
x equals y: true, y equals x: true

x = Stream(0, ?)
y = Stream(0, ?)
x equals y: true, y equals x: true

x = Map(42 -> FortyTwo)
y = Map(42 -> FortyTwo)
x equals y: true, y equals x: true

x = TreeSet(0, 2)
y = TreeSet(0, 2)
x equals y: true, y equals x: true

x = Vector('a, 'b, 'c)
y = Vector('a, 'b, 'c)
x equals y: true, y equals x: true

x = ArrayBuffer(one, two)
y = ArrayBuffer(one, two)
x equals y: true, y equals x: true

x = ArrayBuilder.ofLong
y = ArrayBuilder.ofLong
x equals y: true, y equals x: true

x = ArrayBuilder.ofFloat
y = ArrayBuilder.ofFloat
x equals y: true, y equals x: true

x = ArraySeq(1, 2, 3)
y = ArraySeq(1, 2, 3)
x equals y: true, y equals x: true

x = ArrayStack(3, 2, 20)
y = ArrayStack(3, 2, 20)
x equals y: true, y equals x: true

x = BitSet(0, 8, 9)
y = BitSet(0, 8, 9)
x equals y: true, y equals x: true

x = Map(C -> 3, B -> 2, A -> 1)
y = Map(C -> 3, A -> 1, B -> 2)
x equals y: true, y equals x: true

x = Set(layers, title, buffers)
y = Set(layers, title, buffers)
x equals y: true, y equals x: true

x = History()
y = History()
x equals y: true, y equals x: true

x = ListBuffer(white, black)
y = ListBuffer(white, black)
x equals y: true, y equals x: true

x = Queue(20, 2, 3)
y = Queue(20, 2, 3)
x equals y: true, y equals x: true

x = Stack(3, 2, 20)
y = Stack(3, 2, 20)
x equals y: true, y equals x: true

x = abc
y = abc
x equals y: true, y equals x: true

x = WrappedArray(1, 2, 3)
y = WrappedArray(1, 2, 3)
x equals y: true, y equals x: true

x =  xml:src="hello"
y =  xml:src="hello"
x equals y: true, y equals x: true

x = <title>
y = <title>
x equals y: true, y equals x: true

x = <html>title
y = <html>title
x equals y: true, y equals x: true

x = <html>
      <body>
        <table cellspacing="0" cellpadding="2">
        <tr>
          <th>Last Name
          <th>First Name
        </tr>
        <tr>
          <td> Tom 
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.