public class COSIncrement extends Object implements Iterable<COSBase>
COSIncrement starts at a given COSUpdateInfo to collect updates, that have been made to a
COSDocument and therefore should be added to it´s next increment.COSUpdateState,
COSUpdateInfo| Constructor and Description |
|---|
COSIncrement(COSUpdateInfo incrementOrigin)
Creates a new
COSIncrement for the given COSUpdateInfo, the increment will use it´s
COSDocumentState as it´s own origin and shall collect all updates contained in the given
COSUpdateInfo.Should the given object be null, the resulting increment shall be empty. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(COSBase base)
|
COSIncrement |
exclude(COSBase... base)
|
Set<COSBase> |
getObjects()
|
Iterator<COSBase> |
iterator()
Return an iterator for the determined
objects contained in this COSIncrement. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic COSIncrement(COSUpdateInfo incrementOrigin)
COSIncrement for the given COSUpdateInfo, the increment will use it´s
COSDocumentState as it´s own origin and shall collect all updates contained in the given
COSUpdateInfo.null, the resulting increment shall be empty.incrementOrigin - The COSUpdateInfo serving as an update source for this COSIncrement.public boolean contains(COSBase base)
base - The COSBase to check.true, if the given COSBase is already known to and has been processed by this
COSIncrement.objects,
processedObjectspublic COSIncrement exclude(COSBase... base)
COSBases are not fit for inclusion in an increment and shall be added to excluded.null values shall be ignored.base - The COSBases to add to excluded.COSIncrement itself, to allow method chaining.excludedpublic Iterator<COSBase> iterator()
objects contained in this COSIncrement.iterator in interface Iterable<COSBase>objects contained in this COSIncrement.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.