T - the type of the change objectspublic final class ChangeList<E extends Enum & ChangeType,T> extends Object implements Iterable<Change<E,T>>, AutoCloseable
An ordered list of changes to some resource.
| Modifier and Type | Method and Description |
|---|---|
ChangeList<E,T> |
append(Change<E,T> theChange)
Add a new Change to the current list of changes
|
ChangeList<E,T> |
append(E theType,
T theChange)
Add a new Change to the current list of changes.
|
ChangeList<E,T> |
appendAll(Iterable<Change<E,T>> theChange)
Add all the Changes to the current list of changes
|
void |
clear()
Clear all changes
|
void |
close()
Close all the change objects in this list
|
static <T,E extends Enum & ChangeType> |
create()
Create a new list of Changes
|
boolean |
isEmpty()
Return whether or not the ChangeList is empty
|
Iterator<Change<E,T>> |
iterator() |
int |
size()
Return the number of changes in this change set
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static <T,E extends Enum & ChangeType> ChangeList<E,T> create()
T - the type of payload in the changespublic void clear()
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic ChangeList<E,T> append(Change<E,T> theChange)
theChange - the change to addpublic ChangeList<E,T> appendAll(Iterable<Change<E,T>> theChange)
theChange - the change to addpublic ChangeList<E,T> append(E theType, T theChange)
theType - the type of changetheChange - the change payloadpublic int size()
public boolean isEmpty()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.