Class History<T>
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.collection.History<T>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
Iterable<IHistoryElement<T>>, IHistory<T>, INotifier, INotifier.INotifier2
- Direct Known Subclasses:
PreferenceHistory
-
Nested Class Summary
Nested classes/interfaces inherited from class Notifier
Notifier.CancelationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected final voidchanged()booleanclear()protected IHistoryElement<T> createElement(T data) get(int index) <D> D[]getData(D[] a) intbooleanisEmpty()iterator()protected voidload()remove(int index) protected voidsave()voidsetElements(List<IHistoryElement<T>> newElements) intsize()IHistoryElement<T>[]toArray()Methods inherited from class Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListenerMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
elements
-
-
Constructor Details
-
History
public History()
-
-
Method Details
-
getElements
-
setElements
-
isEmpty
-
size
-
indexOf
-
get
-
add
-
remove
-
clear
-
getMostRecent
- Specified by:
getMostRecentin interfaceIHistory<T>
-
getData
-
toArray
-
iterator
-
createElement
-
load
protected void load() -
save
protected void save() -
changed
protected final void changed()
-