24 25 final class ContainerValue2 { 26 static TestValue2 staticValueField; 27 TestValue2 nonStaticValueField; 28 TestValue2[] valueArray; 29 } 30 31 public __ByValue final class TestValue2 { 32 static TestValue2 staticValue = getInstance(); 33 34 final long l; 35 final double d; 36 final String s; 37 38 private TestValue2() { 39 l = System.nanoTime(); 40 s = Long.valueOf(l).toString(); 41 d = Double.parseDouble(s); 42 } 43 44 __ValueFactory public static TestValue2 create(long l) { 45 TestValue2 v = __MakeDefault TestValue2(); 46 v.l = l; 47 v.s = Long.valueOf(l).toString(); 48 v.d = Double.parseDouble(v.s); 49 return v; 50 } 51 52 __ValueFactory public static TestValue2 create() { 53 TestValue2 v = __MakeDefault TestValue2(); 54 v.l = System.nanoTime(); 55 v.s = Long.valueOf(v.l).toString(); 56 v.d = Double.parseDouble(v.s); 57 return v; 58 } 59 60 public static TestValue2 getInstance() { 61 return create(); 62 } 63 64 public static TestValue2 getNonBufferedInstance() { 65 return staticValue; 66 } 67 68 public boolean verify() { 69 if (s == null) { 70 return d == 0 && l == 0; 71 } 72 return Long.valueOf(l).toString().compareTo(s) == 0 | 24 25 final class ContainerValue2 { 26 static TestValue2 staticValueField; 27 TestValue2 nonStaticValueField; 28 TestValue2[] valueArray; 29 } 30 31 public __ByValue final class TestValue2 { 32 static TestValue2 staticValue = getInstance(); 33 34 final long l; 35 final double d; 36 final String s; 37 38 private TestValue2() { 39 l = System.nanoTime(); 40 s = Long.valueOf(l).toString(); 41 d = Double.parseDouble(s); 42 } 43 44 public static TestValue2 create(long l) { 45 TestValue2 v = __MakeDefault TestValue2(); 46 v.l = l; 47 v.s = Long.valueOf(l).toString(); 48 v.d = Double.parseDouble(v.s); 49 return v; 50 } 51 52 public static TestValue2 create() { 53 TestValue2 v = __MakeDefault TestValue2(); 54 v.l = System.nanoTime(); 55 v.s = Long.valueOf(v.l).toString(); 56 v.d = Double.parseDouble(v.s); 57 return v; 58 } 59 60 public static TestValue2 getInstance() { 61 return create(); 62 } 63 64 public static TestValue2 getNonBufferedInstance() { 65 return staticValue; 66 } 67 68 public boolean verify() { 69 if (s == null) { 70 return d == 0 && l == 0; 71 } 72 return Long.valueOf(l).toString().compareTo(s) == 0 |