| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final ListChangeListener. | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | MappingChange(ListChangeListener.
|
| Modifier and Type | Method and Description |
|---|---|
| public int | getFrom()
Implements abstract javafx. If |
| protected int[] | getPermutation()
Implements abstract javafx. If this change is a permutation, it returns an integer array that describes the permutation. |
| public int | getPermutation(int
the old index that contained the element prior to this change i)Overrides javafx. This method allows developers to observe the permutations that occurred in this change. |
| public List | getRemoved()
Implements abstract javafx. An immutable list of removed/replaced elements. |
| public int | getTo()
Implements abstract javafx. The end of the change interval. |
| public boolean | next()
Implements abstract javafx. Goes to the next change. |
| public void | reset()
Implements abstract javafx. Resets to the initial stage. |
| public String | |
| public boolean | wasPermutated()
Overrides javafx. Indicates if the change was only a permutation. |
| public boolean | wasUpdated()
Overrides javafx. Indicates that the elements between |
| mapper | back to summary |
|---|---|
| private final Function<E, F> mapper | |
| original | back to summary |
|---|---|
| private final ListChangeListener. | |
| removed | back to summary |
|---|---|
| private List<F> removed | |
| MappingChange | back to summary |
|---|---|
| public MappingChange(ListChangeListener. | |
| getFrom | back to summary |
|---|---|
| public int getFrom() Implements abstract javafx. Doc from javafx. If
| |
| getPermutation | back to summary |
|---|---|
| protected int[] getPermutation() Implements abstract javafx. Doc from javafx. 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
| |
| getPermutation | back to summary |
|---|---|
| public int getPermutation(int i) Overrides javafx. Doc from javafx. This method allows developers to observe the permutations that occurred in this change. In order to get the new position of an element, you must call: change.getPermutation(oldIndex);Note: default implementation of this method takes the information from getPermutation() method. You don't have to override this method.
| |
| getRemoved | back to summary |
|---|---|
| public List Implements abstract javafx. Doc from javafx. An immutable list of removed/replaced elements. If no elements were removed from the list, an empty list is returned. | |
| getTo | back to summary |
|---|---|
| public int getTo() Implements abstract javafx. Doc from javafx. The end of the change interval.
| |
| next | back to summary |
|---|---|
| public boolean next() Implements abstract javafx. Doc from javafx. Goes to the next change.
The Change instance, in its initial state, is invalid and requires a call to
| |
| reset | back to summary |
|---|---|
| public void reset() Implements abstract javafx. Doc from javafx. Resets to the initial stage. After this call,
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| wasPermutated | back to summary |
|---|---|
| public boolean wasPermutated() Overrides javafx. Doc from javafx. Indicates if the change was only a permutation.
| |
| wasUpdated | back to summary |
|---|---|
| public boolean wasUpdated() Overrides javafx. Doc from javafx. Indicates that the elements between
| |