Top Fields Constructors Methods
org.reactfx.collection

pack-priv final Class ListModificationImpl<E>

Located in compilation unit of org.reactfx.collection.ListModification.

extends Object
implements ListModification<E>
Class Inheritance
All Implemented Interfaces
org.reactfx.collection.ListModification, org.reactfx.collection.ListModificationLike

Field Summary

Modifier and TypeField and Description
private int
private final ObservableList<E>
private int
private List<? extends E>

Constructor Summary

AccessConstructor and Description
pack-priv
ListModificationImpl(int position, List<? extends E> removed, int addedSize, ObservableList<E> list)

Method Summary

Modifier and TypeMethod and Description
public int
getAddedSize()

Implements org.reactfx.collection.ListModificationLike.getAddedSize.

Returns the number of items added by this change.

public List<? extends E>
public int
getFrom()

Implements org.reactfx.collection.ListModificationLike.getFrom.

Returns the position in the list where this change occurred.

public List<? extends E>
getRemoved()

Implements org.reactfx.collection.ListModificationLike.getRemoved.

Returns an immutable list of elements removed by this change.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public ListModification<E>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

addedSizeback to summary
private int addedSize
listback to summary
private final ObservableList<E> list
positionback to summary
private int position
removedback to summary
private List<? extends E> removed

Constructor Detail

ListModificationImplback to summary
pack-priv ListModificationImpl(int position, List<? extends E> removed, int addedSize, ObservableList<E> list)

Method Detail

getAddedSizeback to summary
public int getAddedSize()

Implements org.reactfx.collection.ListModificationLike.getAddedSize.

Doc from org.reactfx.collection.ListModificationLike.getAddedSize.

Returns the number of items added by this change.

Annotations
@Override
getAddedSubListback to summary
public List<? extends E> getAddedSubList()

Implements org.reactfx.collection.ListModification.getAddedSubList.

Annotations
@Override
getFromback to summary
public int getFrom()

Implements org.reactfx.collection.ListModificationLike.getFrom.

Doc from org.reactfx.collection.ListModificationLike.getFrom.

Returns the position in the list where this change occurred.

Annotations
@Override
getRemovedback to summary
public List<? extends E> getRemoved()

Implements org.reactfx.collection.ListModificationLike.getRemoved.

Doc from org.reactfx.collection.ListModificationLike.getRemoved.

Returns an immutable list of elements removed by this change. Before the change occurred, the first element of the returned list was at index getFrom() in the original list. If no elements were removed by this change, returns an empty list. The size of the returned list is equal to the value returned by getRemovedSize().

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
trimback to summary
public ListModification<E> trim()

Implements org.reactfx.collection.ListModification.trim.

Annotations
@Override