search API (or start typing anywhere)
Results
differ.Results
A result set container. Items in the container are preallocated, then pulled out and updated. The container will behave like a regular container, where iterating, and get will only return values from the valid set. Pushing items will increase the valid set.
class
Members
Properties
length
length : Int
total
total : Int
Methods
clear
clear() : differ.Results<differ.Results.T>
Clear the container, which sets the length to 0. This keeps the cached items but won’t return them while iterating or accessing them. Returns
this
for convience.
get
get(index:Int) : differ.Results.T
Get the item at the given index. If the index is < 0 and > length-1 it returns null; iterator
iterator() : differ.ResultsIterator<differ.Results.T>
Returns an iterator over the valid items in this set. new
new(size:Int) : Void
Create a new set of results. Preallocates
size
items into the list.
pull
pull() : differ.Results.T
Grabs the last item from the cache to reuse. If there are no free items, it adds a new one. Typically internal use. push
push(value:differ.Results.T) : Void
Add an item to the container.