Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement sumByBigDecimal and sumByBigInteger on Collectors2.
Signed-off-by: Donald Raab <Donald.Raab@gs.com>
- Loading branch information
Donald Raab
authored and
Donald Raab
committed
Jan 18, 2017
1 parent
dd0a423
commit 10596f8
Showing
8 changed files
with
290 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...a/org/eclipse/collections/impl/collector/BigDecimalSummaryStatisticsSeralizationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2017 Goldman Sachs. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Eclipse Distribution License v. 1.0 which accompany this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Eclipse Distribution License is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*/ | ||
|
||
package org.eclipse.collections.impl.collector; | ||
|
||
import org.eclipse.collections.impl.test.Verify; | ||
import org.junit.Test; | ||
|
||
public class BigDecimalSummaryStatisticsSeralizationTest | ||
{ | ||
@Test | ||
public void serializedForm() | ||
{ | ||
Verify.assertSerializedForm( | ||
1L, | ||
"rO0ABXNyAEJvcmcuZWNsaXBzZS5jb2xsZWN0aW9ucy5pbXBsLmNvbGxlY3Rvci5CaWdEZWNpbWFs\n" | ||
+ "U3VtbWFyeVN0YXRpc3RpY3MAAAAAAAAAAQIABEoABWNvdW50TAADbWF4dAAWTGphdmEvbWF0aC9C\n" | ||
+ "aWdEZWNpbWFsO0wAA21pbnEAfgABTAADc3VtcQB+AAF4cAAAAAAAAAAAcHBzcgAUamF2YS5tYXRo\n" | ||
+ "LkJpZ0RlY2ltYWxUxxVX+YEoTwMAAkkABXNjYWxlTAAGaW50VmFsdAAWTGphdmEvbWF0aC9CaWdJ\n" | ||
+ "bnRlZ2VyO3hyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cAAAAABzcgAUamF2YS5tYXRo\n" | ||
+ "LkJpZ0ludGVnZXKM/J8fqTv7HQMABkkACGJpdENvdW50SQAJYml0TGVuZ3RoSQATZmlyc3ROb256\n" | ||
+ "ZXJvQnl0ZU51bUkADGxvd2VzdFNldEJpdEkABnNpZ251bVsACW1hZ25pdHVkZXQAAltCeHEAfgAF\n" | ||
+ "///////////////+/////gAAAAB1cgACW0Ks8xf4BghU4AIAAHhwAAAAAHh4", | ||
new BigDecimalSummaryStatistics()); | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...a/org/eclipse/collections/impl/collector/BigIntegerSummaryStatisticsSeralizationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (c) 2017 Goldman Sachs. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Eclipse Distribution License v. 1.0 which accompany this distribution. | ||
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
* and the Eclipse Distribution License is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
*/ | ||
|
||
package org.eclipse.collections.impl.collector; | ||
|
||
import org.eclipse.collections.impl.test.Verify; | ||
import org.junit.Test; | ||
|
||
public class BigIntegerSummaryStatisticsSeralizationTest | ||
{ | ||
@Test | ||
public void serializedForm() | ||
{ | ||
Verify.assertSerializedForm( | ||
1L, | ||
"rO0ABXNyAEJvcmcuZWNsaXBzZS5jb2xsZWN0aW9ucy5pbXBsLmNvbGxlY3Rvci5CaWdJbnRlZ2Vy\n" | ||
+ "U3VtbWFyeVN0YXRpc3RpY3MAAAAAAAAAAQIABEoABWNvdW50TAADbWF4dAAWTGphdmEvbWF0aC9C\n" | ||
+ "aWdJbnRlZ2VyO0wAA21pbnEAfgABTAADc3VtcQB+AAF4cAAAAAAAAAAAcHBzcgAUamF2YS5tYXRo\n" | ||
+ "LkJpZ0ludGVnZXKM/J8fqTv7HQMABkkACGJpdENvdW50SQAJYml0TGVuZ3RoSQATZmlyc3ROb256\n" | ||
+ "ZXJvQnl0ZU51bUkADGxvd2VzdFNldEJpdEkABnNpZ251bVsACW1hZ25pdHVkZXQAAltCeHIAEGph\n" | ||
+ "dmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhw///////////////+/////gAAAAB1cgACW0Ks8xf4\n" | ||
+ "BghU4AIAAHhwAAAAAHg=", | ||
new BigIntegerSummaryStatistics()); | ||
} | ||
} |
Oops, something went wrong.