public interface Summary
Note that instances must be immutable.
Modifier and Type | Method and Description |
---|---|
Summary |
minus(byte[] item)
Removes an item to the summary.
|
Summary |
minus(Iterator<byte[]> items)
Removes several items to the summary.
|
Summary |
plus(byte[] item)
Adds an item to the summary.
|
Summary |
plus(Iterator<byte[]> items)
Adds several items to the summary.
|
Difference<byte[]> |
toDifference()
Retrieves a view of the summary as a difference.
|
String |
toJSON()
Retrieves a JSON view of the summary.
|
Summary plus(byte[] item)
When both summaries can be viewed as a difference
:
item
- the item to add.Summary plus(Iterator<byte[]> items)
Equivalent to repeatedly calling plus(byte[])
for each element, but this
method can do optimizations for batch updates.
items
- the items to add.Summary minus(byte[] item)
When both summaries can be viewed as a difference
:
item
- the item to remove.Summary minus(Iterator<byte[]> items)
Equivalent to repeatedly calling minus(byte[])
for each element, but this
method can do optimizations for batch updates.
items
- the items to remove.String toJSON()
Difference<byte[]> toDifference()
null
if it cannot be resolved with the information it contains.Copyright © 2014. All rights reserved.