Package | raix.interactive |
Interface | public interface ILookup extends IEnumerable, ICancelable |
See also
Method | Defined By | ||
---|---|---|---|
![]() | all(predicate:Function):Boolean
Determines if the every value in the source sequence matches a predicate
function. | IEnumerable | |
![]() | any(predicate:Function = null):Boolean
Determines if the predicate argument function returns true for any
item in the sequence. | IEnumerable | |
![]() | average(valueSelector:Function = null):Number
Retrieves the average value in the sequence. | IEnumerable | |
![]() | cancel():void
Cancels the operation
| ICancelable | |
![]() |
Returns a new sequence that will seemlessly enumerate a second sequence after
the first sequence completes
| IEnumerable | |
![]() | contains(value:Object, equalityComparer:Function = null):Boolean
Determines if the source sequence contains a specific value, optionally
using an equalityComparer function. | IEnumerable | |
containsKey(key:Object):Boolean | ILookup | ||
![]() | count():uint
Determines the number of elements in the sequence. | IEnumerable | |
![]() | defaultIfEmpty(defaultValue:Object = null):IEnumerable
Returns a new sequence that will return the given defaultValue
Uses deferred execution
| IEnumerable | |
![]() | distinct(hashSelector:Function = null):IEnumerable
Returns a new sequence that only contains the unique values in the original sequence. | IEnumerable | |
![]() | elementAt(index:int):Object
Returns the element at the given index or throws an IllegalOperationError if
the sequence does not contain that many elements. | IEnumerable | |
![]() | elementAtOrDefault(index:int, defaultValue:Object = null):Object
Returns the element at the given index or a default value if
the sequence does not contain that many elements. | IEnumerable | |
![]() | except(right:*, hashSelector:Function = null):IEnumerable
Returns a new sequence that contains the values in the source sequence that
do not exist in the supplied sequence
| IEnumerable | |
![]() | filter(predicate:Function):IEnumerable
Filters the source sequence based on a predicate function. | IEnumerable | |
![]() | first(predicate:Function = null):Object
Returns the first element in the sequence or throws an IllegalOperationError
if the sequence is empty. | IEnumerable | |
![]() | firstOrDefault(defaultValue:Object = null, predicate:Function = null):Object
Returns the first element in the sequence or returns a default value
if the sequence is empty. | IEnumerable | |
![]() |
Returns an object that can be used to enumerate through this sequence. | IEnumerable | |
getValues(key:Object):IEnumerable
Returns a sequence of values for the specified key or
an empty sequence if the key has no values
| ILookup | ||
![]() | groupBy(keySelector:Function, elementSelector:Function = null, keyHashSelector:Function = null):IEnumerable
Groups elements of a sequence using a key selector function
| IEnumerable | |
![]() | groupJoin(inner:IEnumerable, outerKeySelector:Function, innerKeySelector:Function, resultSelector:Function, keyHashSelector:Function = null):IEnumerable
Correlates the elements of two sequences based on keys and groups the results
Uses immediate execution on the inner sequence, uses deferred executino on the outer (source)
sequence
| IEnumerable | |
![]() | intersect(right:*, hashSelector:Function = null):IEnumerable
Returns a new sequence that contains only the values contained in both sequences
| IEnumerable | |
![]() | join(inner:IEnumerable, outerKeySelector:Function, innerKeySelector:Function, resultSelector:Function, keyHashSelector:Function = null):IEnumerable
Correlates the elements of two sequences based on keys. | IEnumerable | |
![]() | last(predicate:Function = null):Object
Returns the last element in the sequence or throws an IllegalOperationError
if the sequence is empty. | IEnumerable | |
![]() | lastOrDefault(defaultValue:Object = null, predicate:Function = null):Object
Returns the last element in the sequence or returns a default value
if the sequence is empty. | IEnumerable | |
![]() | map(selector:Function):IEnumerable
Projects (converts) values using a selector function. | IEnumerable | |
![]() | mapMany(collectionSelector:Function, resultSelector:Function = null):IEnumerable
Maps a sequence for each value in the source sequence and concatonates the results into
a single sequence. | IEnumerable | |
![]() | max(valueSelector:Function = null, comparer:Function = null):Object
Retrieves the maximum element in the sequence. | IEnumerable | |
![]() | min(valueSelector:Function = null, comparer:Function = null):Object
Retrieves the minimum element in the sequence. | IEnumerable | |
![]() | ofType(cls:Class):IEnumerable
Filters values from a sequence based on their type
| IEnumerable | |
![]() | orderBy(keySelector:Function, comparer:Function = null):IOrderedEnumerable
Orders the values in the source sequence in ascending order
| IEnumerable | |
![]() | orderByDescending(keySelector:Function, comparer:Function = null):IOrderedEnumerable
Orders the values in the source sequence in descending order
| IEnumerable | |
![]() | reduce(seed:Object, accumulator:Function, resultSelector:Function = null):Object
Aggregates values in a sequence using functions passed as arguments. | IEnumerable | |
![]() | repeat(count:uint = 0):IEnumerable
Repeats the source sequence a specified number of times
| IEnumerable | |
![]() |
Reverses the values in the source sequence
| IEnumerable | |
![]() | scan(seed:Object, accumulator:Function, resultSelector:Function = null):IEnumerable
Returns a sequence that aggregates values using functions passed as arguments, using
deferred execution and returning the values accumulated values as they are returned. | IEnumerable | |
![]() | sequenceEqual(right:IEnumerable, comparer:Function = null):Boolean
Determines whether two sequences are equal. | IEnumerable | |
![]() | single(predicate:Function = null):Object
Returns the first element in the sequence or throws an IllegalOperationError
if the sequence does not contain exactly one value. | IEnumerable | |
![]() | singleOrDefault(defaultValue:Object = null, predicate:Function = null):Object
Returns the first element in the sequence or throws an IllegalOperationError
if the sequence does contains multiple values, but returns a default value if
the sequence returns no values. | IEnumerable | |
![]() | skip(count:uint):IEnumerable
Returns a new sequence that excludes the specified number of values from
the start of the source sequence
| IEnumerable | |
![]() | skipLast(count:uint):IEnumerable
Returns a new sequence that excludes the specified number of values from
the end of the source sequence
| IEnumerable | |
![]() | skipWhile(predicate:Function):IEnumerable
Returns a new sequence that skips values from the source sequence
until a specified predicate returns false, at which point values will be
returned from the rest of sequence
| IEnumerable | |
![]() | sum(valueSelector:Function = null):Number
Returns the total numeric value of every value in the sequence
| IEnumerable | |
![]() | take(count:uint):IEnumerable
Returns a new sequence that includes a maximum number of elements from the first sequence
| IEnumerable | |
![]() | takeLast(count:uint):IEnumerable
Returns a new sequence that includes a maximum number of elements to take from
the end of the first sequence
| IEnumerable | |
![]() | takeWhile(predicate:Function):IEnumerable
Returns a new sequence that includes values from the source sequence
until a specified predicate returns false, at which point the sequence will end
| IEnumerable | |
![]() | toArray():Array
Retrieves an array containing all the values in the sequence
| IEnumerable | |
![]() | toDictionary(keySelector:Function, elementSelector:Function = null):Dictionary
Converts the sequence to a Dictionary. | IEnumerable | |
![]() | toLookup(keySelector:Function, elementSelector:Function = null, keyHashSelector:Function = null):ILookup
Converts the sequence to an ILookup, which is simiular to a Dictionary with the following
differences:
Supports null keys
Returns an empty sequence for requests for keys that do not exist
Uses immediate execution
| IEnumerable | |
![]() |
Converts the interactive sequence to an observable sequence, optionally using a scheduler
| IEnumerable | |
![]() | union(right:*, hashSelector:Function = null):IEnumerable
Returns a new sequence that contains the unique values across two sequences
| IEnumerable | |
![]() |
Pairs values from two sequences in order and uses a selector function to project the results
| IEnumerable |
containsKey | () | method |
public function containsKey(key:Object):Boolean
Parameters
key:Object |
Boolean |
getValues | () | method |
public function getValues(key:Object):IEnumerable
Returns a sequence of values for the specified key or an empty sequence if the key has no values
Parameters
key:Object — The key to lookup
|
IEnumerable — An IEnumerable sequence of values
|