Object Routines
8 nodes
On this page 8
Create
FunctionA new, empty object that holds no data and equals nothing but itself, useful as a unique marker or as something to lock on.
Create() -> Any
object Create()
Returns
| result | Any |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Equals
FunctionWhether two values are equal, using the first value's own idea of equality (so two texts with the same characters are equal). Two nulls are equal, and a null is never equal to a non-null value; unlike ObjectRoutines.LogicalEquals, either input may be null.
Equals(objA: Any, objB: Any) -> Truth
bool Equals(object objA, object objB)
Parameters
| name | type | default | description |
|---|---|---|---|
| objA | Any | — | The first value to compare, or null. |
| objB | Any | — | The second value to compare, or null. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Get Hash Code
FunctionThe value's hash code, the number dictionaries and sets use to file it. Equal values give equal hash codes, but different values can share one, and some (text, for example) change from one run of the program to the next, so it is not an identifier to store. Throws System.ArgumentNullException when Target is null.
GetHashCode(target: Any) -> Integer
int GetHashCode(object target)
Parameters
| name | type | default | description |
|---|---|---|---|
| target | Any | — | The value to hash. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Get Type
FunctionThe actual type of the value at run time, which can be more specific than the type of the wire it arrived on. Throws System.ArgumentNullException when Target is null.
GetType(target: Any) -> Type
Type GetType(object target)
Parameters
| name | type | default | description |
|---|---|---|---|
| target | Any | — | The value to inspect. |
Returns
| result | Type |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Logical Equals
FunctionWhether Target considers itself equal to Obj, by whatever equality its type defines (which may be custom). Throws System.ArgumentNullException when Target is null; use ObjectRoutines.Equals when either side may be null.
LogicalEquals(target: Any, obj: Any) -> Truth
bool LogicalEquals(object target, object obj)
Parameters
| name | type | default | description |
|---|---|---|---|
| target | Any | — | The value whose equality rule is used. |
| obj | Any | — | The value to compare it with, or null. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Memberwise Clone
FunctionA shallow copy of the value: a new object of the same type whose fields hold the same values as the original's, so any objects it refers to (lists, for example) are shared with the original rather than copied. Throws System.ArgumentNullException when Target is null.
MemberwiseClone(target: Any) -> Any
object MemberwiseClone(object target)
Parameters
| name | type | default | description |
|---|---|---|---|
| target | Any | — | The value to copy. |
Returns
| result | Any |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
Reference Equals
FunctionWhether two inputs are the very same object, not merely equal in content; two nulls count as the same. Numbers and other value types are copied separately when passed in, so they never compare as the same object, even with themselves.
ReferenceEquals(objA: Any, objB: Any) -> Truth
bool ReferenceEquals(object objA, object objB)
Parameters
| name | type | default | description |
|---|---|---|---|
| objA | Any | — | The first object, or null. |
| objB | Any | — | The second object, or null. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library
To String
FunctionThe value's text form, as its type defines it; a type that defines none gives its full type name. A number or a date is written the one way Divooka writes it, whatever region the machine is set to - 1.5, 2026-01-02 14:30:00 - and anything else that can be formatted, in the invariant culture. Throws System.ArgumentNullException when Target is null.
ToString(target: Any) -> Text
string ToString(object target)
Parameters
| name | type | default | description |
|---|---|---|---|
| target | Any | — | The value to describe. |
Returns
| result | Text |
Remarks
Round 24: the one spelling (Abstraction.ValueText), as Number to Text writes it - it used to write the machine's region's, so the same document gave "1,5" on a German machine.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Object Routines
- Package
- Standard Library