Packagecom.yworks.yfiles.util
Classpublic class Maps_HighPerformanceIntMap
InheritanceMaps_HighPerformanceIntMap Inheritance YObject Inheritance Object
Implements NodeMap, EdgeMap

Implementation of a resettable high performance map for values of simple type int. A high performance map is a facade to another map which will allow to reset all bound values to a default value in constant time.



Public Methods
 MethodDefined By
  
Maps_HighPerformanceIntMap(backingMap:DataMap, defaultValue:int, init:Boolean = true)
Maps_HighPerformanceIntMap
 Inherited
equals(o:Object):Boolean
YObject
  
getBool(dataHolder:Object):Boolean
Maps_HighPerformanceIntMap
  
getClass():Class
[override]
Maps_HighPerformanceIntMap
  
getDouble(dataHolder:Object):Number
Maps_HighPerformanceIntMap
  
getInt(dataHolder:Object):int
Maps_HighPerformanceIntMap
  
getObject(dataHolder:Object):Object
Maps_HighPerformanceIntMap
 Inherited
hashCode():int
YObject
  
[static]
Maps_HighPerformanceIntMap
  
newMaps_HighPerformanceIntMap2(backingProvider:DataProvider, backingAcceptor:DataAcceptor, defaultValue:int):Maps_HighPerformanceIntMap
[static]
Maps_HighPerformanceIntMap
  
resetAll(defaultValue:int):void
Resets all values to the given default value in constant time.
Maps_HighPerformanceIntMap
  
setBool(dataHolder:Object, value:Boolean):void
Maps_HighPerformanceIntMap
  
setDouble(dataHolder:Object, value:Number):void
Maps_HighPerformanceIntMap
  
setInt(dataHolder:Object, value:int):void
Maps_HighPerformanceIntMap
  
setObject(dataHolder:Object, value:Object):void
Maps_HighPerformanceIntMap
Protected Methods
 MethodDefined By
  
initMaps_HighPerformanceIntMap1(backingMap:DataMap, defaultValue:int):void
Initializes this object.
Maps_HighPerformanceIntMap
  
initMaps_HighPerformanceIntMap2(backingProvider:DataProvider, backingAcceptor:DataAcceptor, defaultValue:int):void
Initializes this object.
Maps_HighPerformanceIntMap
Constructor Detail
Maps_HighPerformanceIntMap()Constructor
public function Maps_HighPerformanceIntMap(backingMap:DataMap, defaultValue:int, init:Boolean = true)

Parameters
backingMap:DataMap
 
defaultValue:int
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
getBool()method
public function getBool(dataHolder:Object):Boolean

Parameters

dataHolder:Object

Returns
Boolean
getClass()method 
override public function getClass():Class

Returns
Class
getDouble()method 
public function getDouble(dataHolder:Object):Number

Parameters

dataHolder:Object

Returns
Number
getInt()method 
public function getInt(dataHolder:Object):int

Parameters

dataHolder:Object

Returns
int
getObject()method 
public function getObject(dataHolder:Object):Object

Parameters

dataHolder:Object

Returns
Object
initMaps_HighPerformanceIntMap1()method 
protected final function initMaps_HighPerformanceIntMap1(backingMap:DataMap, defaultValue:int):void

Initializes this object. See the documentation of the corresponding factory method newMaps_HighPerformanceIntMap1() for details.

Parameters

backingMap:DataMap
 
defaultValue:int

See also

initMaps_HighPerformanceIntMap2()method 
protected final function initMaps_HighPerformanceIntMap2(backingProvider:DataProvider, backingAcceptor:DataAcceptor, defaultValue:int):void

Initializes this object. See the documentation of the corresponding factory method newMaps_HighPerformanceIntMap2() for details.

Parameters

backingProvider:DataProvider
 
backingAcceptor:DataAcceptor
 
defaultValue:int

See also

newMaps_HighPerformanceIntMap1()method 
public static function newMaps_HighPerformanceIntMap1(backingMap:DataMap, defaultValue:int):Maps_HighPerformanceIntMap

Parameters

backingMap:DataMap
 
defaultValue:int

Returns
Maps_HighPerformanceIntMap
newMaps_HighPerformanceIntMap2()method 
public static function newMaps_HighPerformanceIntMap2(backingProvider:DataProvider, backingAcceptor:DataAcceptor, defaultValue:int):Maps_HighPerformanceIntMap

Parameters

backingProvider:DataProvider
 
backingAcceptor:DataAcceptor
 
defaultValue:int

Returns
Maps_HighPerformanceIntMap
resetAll()method 
public function resetAll(defaultValue:int):void

Resets all values to the given default value in constant time.

Parameters

defaultValue:int — the new default value

setBool()method 
public function setBool(dataHolder:Object, value:Boolean):void

Parameters

dataHolder:Object
 
value:Boolean

setDouble()method 
public function setDouble(dataHolder:Object, value:Number):void

Parameters

dataHolder:Object
 
value:Number

setInt()method 
public function setInt(dataHolder:Object, value:int):void

Parameters

dataHolder:Object
 
value:int

setObject()method 
public function setObject(dataHolder:Object, value:Object):void

Parameters

dataHolder:Object
 
value:Object