Top Fields Constructors Methods
org.reactfx.collection

pack-priv Class QuasiListModificationImpl<E>

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

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

Field Summary

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

Constructor Summary

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

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 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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

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

Constructor Detail

QuasiListModificationImplback to summary
pack-priv QuasiListModificationImpl(int position, List<? extends E> removed, int addedSize)

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
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