Top Inners Fields Constructors Methods
impl.org.controlsfx.collections

public abstract Class NonIterableChange<E>

extends ListChangeListener.Change<E>
Class Inheritance
Known Direct Subclasses
impl.org.controlsfx.collections.NonIterableChange.GenericAddRemoveChange, impl.org.controlsfx.collections.NonIterableChange.SimpleRemovedChange, impl.org.controlsfx.collections.NonIterableChange.SimpleAddChange
Imports
java.util.Collections, .List, javafx.collections.ListChangeListener.Change, .ObservableList

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final int
private boolean
private final int

Constructor Summary

AccessConstructor and Description
protected
NonIterableChange(int from, int to, ObservableList<E> list)

Method Summary

Modifier and TypeMethod and Description
public void
public int
getFrom()

Implements abstract javafx.collections.ListChangeListener.Change.getFrom.

If wasAdded() is true, the interval contains all the values that were added.

protected int[]
getPermutation()

Implements abstract javafx.collections.ListChangeListener.Change.getPermutation.

If this change is a permutation, it returns an integer array that describes the permutation.

public int
getTo()

Implements abstract javafx.collections.ListChangeListener.Change.getTo.

The end of the change interval.

public boolean
next()

Implements abstract javafx.collections.ListChangeListener.Change.next.

Goes to the next change.

public void
reset()

Implements abstract javafx.collections.ListChangeListener.Change.reset.

Resets to the initial stage.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.collections.ListChangeListener.Change:
getAddedSizegetAddedSubListgetListgetPermutationgetRemovedgetRemovedSizewasAddedwasPermutatedwasRemovedwasReplacedwasUpdated

Field Detail

fromback to summary
private final int from
invalidback to summary
private boolean invalid
toback to summary
private final int to

Constructor Detail

NonIterableChangeback to summary
protected NonIterableChange(int from, int to, ObservableList<E> list)

Method Detail

checkStateback to summary
public void checkState()
getFromback to summary
public int getFrom()

Implements abstract javafx.collections.ListChangeListener.Change.getFrom.

Doc from javafx.collections.ListChangeListener.Change.getFrom.

If wasAdded() is true, the interval contains all the values that were added. If wasPermutated() is true, the interval marks the values that were permutated. If wasRemoved() is true and wasAdded is false, getFrom() and getTo() should return the same number - the place where the removed elements were positioned in the list.

Annotations
@Override
getPermutationback to summary
protected int[] getPermutation()

Implements abstract javafx.collections.ListChangeListener.Change.getPermutation.

Doc from javafx.collections.ListChangeListener.Change.getPermutation.

If this change is a permutation, it returns an integer array that describes the permutation. This array maps directly from the previous indexes to the new ones. This method is not publicly accessible and therefore can return an array safely. The 0 index of the array corresponds to index getFrom() of the list. The same applies for the last index and getTo(). The method is used by wasPermutated() and getPermutation(int) methods.

Annotations
@Override
getToback to summary
public int getTo()

Implements abstract javafx.collections.ListChangeListener.Change.getTo.

Doc from javafx.collections.ListChangeListener.Change.getTo.

The end of the change interval.

Annotations
@Override
nextback to summary
public boolean next()

Implements abstract javafx.collections.ListChangeListener.Change.next.

Doc from javafx.collections.ListChangeListener.Change.next.

Goes to the next change. The Change instance, in its initial state, is invalid and requires a call to next() before calling other methods. The first next() call will make this object represent the first change.

Annotations
@Override
resetback to summary
public void reset()

Implements abstract javafx.collections.ListChangeListener.Change.reset.

Doc from javafx.collections.ListChangeListener.Change.reset.

Resets to the initial stage. After this call, next() must be called before working with the first change.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
impl.org.controlsfx.collections back to summary

public Class NonIterableChange.GenericAddRemoveChange<E>

extends NonIterableChange<E>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final List<E>

Constructor Summary

AccessConstructor and Description
public
GenericAddRemoveChange(int from, int to, List<E> removed, ObservableList<E> list)

Method Summary

Modifier and TypeMethod and Description
public List<E>
getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements.

Inherited from impl.org.controlsfx.collections.NonIterableChange:
checkStategetFromgetPermutationgetTonextresettoString

Field Detail

removedback to summary
private final List<E> removed

Constructor Detail

GenericAddRemoveChangeback to summary
public GenericAddRemoveChange(int from, int to, List<E> removed, ObservableList<E> list)

Method Detail

getRemovedback to summary
public List<E> getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

Doc from javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements. If no elements were removed from the list, an empty list is returned.

Annotations
@Override
impl.org.controlsfx.collections back to summary

public Class NonIterableChange.SimpleAddChange<E>

extends NonIterableChange<E>
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
SimpleAddChange(int from, int to, ObservableList<E> list)

Method Summary

Modifier and TypeMethod and Description
public List<E>
getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements.

public boolean
wasRemoved()

Overrides javafx.collections.ListChangeListener.Change.wasRemoved.

Indicates if elements were removed during this change.

Inherited from impl.org.controlsfx.collections.NonIterableChange:
checkStategetFromgetPermutationgetTonextresettoString

Constructor Detail

SimpleAddChangeback to summary
public SimpleAddChange(int from, int to, ObservableList<E> list)

Method Detail

getRemovedback to summary
public List<E> getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

Doc from javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements. If no elements were removed from the list, an empty list is returned.

Annotations
@Override
wasRemovedback to summary
public boolean wasRemoved()

Overrides javafx.collections.ListChangeListener.Change.wasRemoved.

Doc from javafx.collections.ListChangeListener.Change.wasRemoved.

Indicates if elements were removed during this change. Note that using set will also produce a change with wasRemoved() returning true. See wasReplaced().

Annotations
@Override
impl.org.controlsfx.collections back to summary

public Class NonIterableChange.SimpleRemovedChange<E>

extends NonIterableChange<E>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final List<E>

Constructor Summary

AccessConstructor and Description
public
SimpleRemovedChange(int from, int to, E removed, ObservableList<E> list)

Method Summary

Modifier and TypeMethod and Description
public List<E>
getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements.

public boolean
wasRemoved()

Overrides javafx.collections.ListChangeListener.Change.wasRemoved.

Indicates if elements were removed during this change.

Inherited from impl.org.controlsfx.collections.NonIterableChange:
checkStategetFromgetPermutationgetTonextresettoString

Field Detail

removedback to summary
private final List<E> removed

Constructor Detail

SimpleRemovedChangeback to summary
public SimpleRemovedChange(int from, int to, E removed, ObservableList<E> list)

Method Detail

getRemovedback to summary
public List<E> getRemoved()

Implements abstract javafx.collections.ListChangeListener.Change.getRemoved.

Doc from javafx.collections.ListChangeListener.Change.getRemoved.

An immutable list of removed/replaced elements. If no elements were removed from the list, an empty list is returned.

Annotations
@Override
wasRemovedback to summary
public boolean wasRemoved()

Overrides javafx.collections.ListChangeListener.Change.wasRemoved.

Doc from javafx.collections.ListChangeListener.Change.wasRemoved.

Indicates if elements were removed during this change. Note that using set will also produce a change with wasRemoved() returning true. See wasReplaced().

Annotations
@Override