Java javafx.collections ObservableList fields, constructors, methods, implement or subclass

Example usage for Java javafx.collections ObservableList fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.collections ObservableList.

The text is from its open source code.

Method

booleanadd(E e)
Appends the specified element to the end of this list (optional operation).
voidadd(int index, E element)
Inserts the specified element at the specified position in this list (optional operation).
booleanaddAll(int index, Collection c)
Inserts all of the elements in the specified collection into this list at the specified position (optional operation).
booleanaddAll(E... elements)
A convenience method for var-arg addition of elements.
voidaddListener(ListChangeListener listener)
Add a listener to this observable list.
voidclear()
Removes all of the elements from this list (optional operation).
booleancontains(Object o)
Returns true if this list contains the specified element.
FilteredListfiltered(Predicate predicate)
Creates a FilteredList wrapper of this list using the specified predicate.
voidforEach(Consumer action)
Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.
Eget(int index)
Returns the element at the specified position in this list.
intindexOf(Object o)
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.
booleanisEmpty()
Returns true if this list contains no elements.
Iteratoriterator()
Returns an iterator over the elements in this list in proper sequence.
ListIteratorlistIterator()
Returns a list iterator over the elements in this list (in proper sequence).
voidremove(int from, int to)
A simplified way of calling sublist(from, to).clear() .
booleanremove(Object o)
Removes the first occurrence of the specified element from this list, if it is present (optional operation).
booleanremoveAll(E... elements)
A convenience method for var-arg usage of the #removeAll(Collection) removeAll method.
booleanretainAll(E... elements)
A convenience method for var-arg usage of the #retainAll(Collection) retainAll method.
Eset(int index, E element)
Replaces the element at the specified position in this list with the specified element (optional operation).
booleansetAll(E... elements)
Clears the ObservableList and adds all the elements passed as var-args.
booleansetAll(Collection col)
Clears the ObservableList and adds all elements from the collection.
intsize()
Returns the number of elements in this list.
voidsort(Comparator c)
Sorts this list according to the order induced by the specified Comparator .
SortedListsorted(Comparator comparator)
Creates a SortedList wrapper of this list using the specified comparator.
Streamstream()
Returns a sequential Stream with this collection as its source.
T[]toArray(T[] a)
Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array.