This class is used as a look-up key for registering IMapper<K, V> for LayoutEdges with a LayoutGraph.
Inheritance Hierarchy
Members
Show:
Constructors
Initializes a new instance of the EdgeDataKey<TValue> class.
Initializes a new instance of the EdgeDataKey<TValue> class.
Parameters
- id?: string
- The unique identifier for this key. The id should be a combination of the namespace, class name, possible inner classes, and the field name of the EdgeDataKey<TValue> instance, to ensure uniqueness. For example, if this EdgeDataKey<TValue> instance is declared in the namespace 'yWorks.Layout.Organic' within the class 'OrganicLayout' with the field name 'ClusterIdDataKey', the id could be 'yWorks.Layout.Organic.OrganicLayout.ClusterIdDataKey'. If omitted, the key object itself is the identifier.
- fallbackValue?: TValue
- A value of type
TValueused as fallback if the registered IMapper<K, V> is indexed with a key which is not present.
Properties
readonlyfinal
Property Value
The unique identifier for this key or
null if none was specified.Defined in
DataKey.idMethods
Determines whether the specified Object is equal to this instance.
Determines whether the specified Object is equal to this instance.
Parameters
- obj: any
- The Object to compare with this instance.
Return Value
- boolean
Defined in
DataKey.equalsReturn Value
- number
- A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Defined in
DataKey.hashCodeReturns whether this key is equal to the specified other.
Returns whether this key is equal to the specified
other.protectedfinal
Parameters
- other: DataKey<TValue>
- The other key to compare with this instance.
Return Value
- boolean
trueif the specified key is equal to this instance; otherwise,false.