The root of the class hierarchy of the yFiles for HTML class framework.
Inheritance Hierarchy
YObject
Type Details
- yfiles module
- lang
- yfiles-umd modules
- All modules
- Legacy UMD name
- yfiles.lang.Object
Methods
Tests whether the given objects are considered equal by yFiles.
Remarks
The comparison is performed as follows: If the first object has an equals function, its result will be returned. Otherwise, the two objects are basically tested for strict equality (===). There is practically no reason to call this method. If working with instances of yFiles types, call the instance equals method instead. Otherwise, directly use the equality operator or comparison function that fits your needs.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- other - Object
- The tested object.
Returns
- ↪boolean
true
, if the objects are equal;false
otherwise.
Returns an object with a get and/or a set method that is optionally bound to this instance.
Remarks
The requested
name
must be a property (with getter and/or setter).Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- name - string
- The name of the property.
- bound - boolean
- If
true
, then the get/set methods of the returned object will be bound to this instance.
Returns
- ↪Object
- An object with a get and/or set method that reads/writes to the specified field.
null
if no property exists by that name.
Returns the hash code of this object.
Remarks
If two objects are equal, then they must have the same hash code.
Returns
- ↪number
- The hash code of this object.
Static Methods
Returns the most recently defined property descriptor in the prototype chain of the given object.
Returns a hash code for the given object so that it can be used in a HashMap<TKey,TValue>.
Remarks
If
o
implements a hashCode
method, it will be called to retrieve the result. Otherwise, JavaScript types also return somewhat sensible values.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- o - Object
- A value to get a hashCode for. May be any native JavaScript type, yFiles type, or null or undefined.
Returns
- ↪number
- A hash code for the given object.