Packageraix.interactive
Interfacepublic interface ILookup extends IEnumerable, ICancelable

Contains values grouped by keys

See also

IEnumerable.toLookup


Public Methods
 MethodDefined By
 Inherited
all(predicate:Function):Boolean
Determines if the every value in the source sequence matches a predicate function.
IEnumerable
 Inherited
any(predicate:Function = null):Boolean
Determines if the predicate argument function returns true for any item in the sequence.
IEnumerable
 Inherited
average(valueSelector:Function = null):Number
Retrieves the average value in the sequence.
IEnumerable
 Inherited
cancel():void
Cancels the operation
ICancelable
 Inherited
Returns a new sequence that will seemlessly enumerate a second sequence after the first sequence completes
IEnumerable
 Inherited
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
 Inherited
count():uint
Determines the number of elements in the sequence.
IEnumerable
 Inherited
defaultIfEmpty(defaultValue:Object = null):IEnumerable
Returns a new sequence that will return the given defaultValue Uses deferred execution
IEnumerable
 Inherited
distinct(hashSelector:Function = null):IEnumerable
Returns a new sequence that only contains the unique values in the original sequence.
IEnumerable
 Inherited
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
 Inherited
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
 Inherited
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
 Inherited
filter(predicate:Function):IEnumerable
Filters the source sequence based on a predicate function.
IEnumerable
 Inherited
first(predicate:Function = null):Object
Returns the first element in the sequence or throws an IllegalOperationError if the sequence is empty.
IEnumerable
 Inherited
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
 Inherited
Returns an object that can be used to enumerate through this sequence.
IEnumerable
  
Returns a sequence of values for the specified key or an empty sequence if the key has no values
ILookup
 Inherited
groupBy(keySelector:Function, elementSelector:Function = null, keyHashSelector:Function = null):IEnumerable
Groups elements of a sequence using a key selector function
IEnumerable
 Inherited
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
 Inherited
intersect(right:*, hashSelector:Function = null):IEnumerable
Returns a new sequence that contains only the values contained in both sequences
IEnumerable
 Inherited
join(inner:IEnumerable, outerKeySelector:Function, innerKeySelector:Function, resultSelector:Function, keyHashSelector:Function = null):IEnumerable
Correlates the elements of two sequences based on keys.
IEnumerable
 Inherited
last(predicate:Function = null):Object
Returns the last element in the sequence or throws an IllegalOperationError if the sequence is empty.
IEnumerable
 Inherited
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
 Inherited
map(selector:Function):IEnumerable
Projects (converts) values using a selector function.
IEnumerable
 Inherited
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
 Inherited
max(valueSelector:Function = null, comparer:Function = null):Object
Retrieves the maximum element in the sequence.
IEnumerable
 Inherited
min(valueSelector:Function = null, comparer:Function = null):Object
Retrieves the minimum element in the sequence.
IEnumerable
 Inherited
ofType(cls:Class):IEnumerable
Filters values from a sequence based on their type
IEnumerable
 Inherited
orderBy(keySelector:Function, comparer:Function = null):IOrderedEnumerable
Orders the values in the source sequence in ascending order
IEnumerable
 Inherited
orderByDescending(keySelector:Function, comparer:Function = null):IOrderedEnumerable
Orders the values in the source sequence in descending order
IEnumerable
 Inherited
reduce(seed:Object, accumulator:Function, resultSelector:Function = null):Object
Aggregates values in a sequence using functions passed as arguments.
IEnumerable
 Inherited
repeat(count:uint = 0):IEnumerable
Repeats the source sequence a specified number of times
IEnumerable
 Inherited
Reverses the values in the source sequence
IEnumerable
 Inherited
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
 Inherited
sequenceEqual(right:IEnumerable, comparer:Function = null):Boolean
Determines whether two sequences are equal.
IEnumerable
 Inherited
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
 Inherited
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
 Inherited
skip(count:uint):IEnumerable
Returns a new sequence that excludes the specified number of values from the start of the source sequence
IEnumerable
 Inherited
skipLast(count:uint):IEnumerable
Returns a new sequence that excludes the specified number of values from the end of the source sequence
IEnumerable
 Inherited
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
 Inherited
sum(valueSelector:Function = null):Number
Returns the total numeric value of every value in the sequence
IEnumerable
 Inherited
take(count:uint):IEnumerable
Returns a new sequence that includes a maximum number of elements from the first sequence
IEnumerable
 Inherited
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
 Inherited
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
 Inherited
toArray():Array
Retrieves an array containing all the values in the sequence
IEnumerable
 Inherited
toDictionary(keySelector:Function, elementSelector:Function = null):Dictionary
Converts the sequence to a Dictionary.
IEnumerable
 Inherited
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
 Inherited
Converts the interactive sequence to an observable sequence, optionally using a scheduler
IEnumerable
 Inherited
union(right:*, hashSelector:Function = null):IEnumerable
Returns a new sequence that contains the unique values across two sequences
IEnumerable
 Inherited
zip(right:IEnumerable, resultSelector:Function):IEnumerable
Pairs values from two sequences in order and uses a selector function to project the results
IEnumerable
Method Detail
containsKey()method
public function containsKey(key:Object):Boolean

Parameters

key:Object

Returns
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

Returns
IEnumerable — An IEnumerable sequence of values