Provides utilities for working with
IEntity implementations and collections holding
IEntity implementations.
public static function containsEntityWithID(entities:Array, id:Object):Boolean
Parameters
Returns
public static function containsEntityWithSamePropertyValue(entities:ArrayCollection, entity:Object, prop:String):Boolean
Parameters
| entities:ArrayCollection |
| |
| entity:Object |
| |
| prop:String |
Returns
public static function getEntitiesByID(entities:Array, id:Object):Array
Parameters
Returns
public static function getEntityByID(entities:Array, id:Object):*
Returns the first entity in the given array that has the given id.
If none was found, null is returned.
Parameters
Returns
public static function getEntityByProperty(entities:Array, propertyName:String, propertyValue:Object):*
Parameters
| entities:Array |
| |
| propertyName:String |
| |
| propertyValue:Object |
Returns
public static function getEntityByTypeAndID(entities:Array, type:Class, id:Object):IEntity
Returns the first entity in the given array that has the given type and id.
If none was found, null is returned.
Parameters
| entities:Array |
| |
| type:Class |
| |
| id:Object |
Returns
public static function getEntityIndexByID(entities:Array, id:Object):int
Returns the index of an entity in the given array based on its id.
If no entity was found, -1 is returned.
Parameters
| entities:Array — the array of IEntity instances
|
| |
| id:Object — the id of the entity
|
Returns
| int — the index of the entity in the array or -1 if it was not found
|
public static function getIDs(entities:Array):Array
Returns all ids of the given entities.
Parameters
Returns
| Array — an array containing all ids of the given entities
|
public static function getUniqueEntitiesUsingID(entities:Array):Array
Returns an array of unique entities based on their id.
Parameters
Returns
public static function removeEntityByID(entities:ICollectionView, id:*):IEntity
Parameters
| entities:ICollectionView |
| |
| id:* |
Returns
Copyright 2007-2010 Spring Actionscript.