maxon.Id¶
Description¶
maxon.Id
represents an identifier consisting of a c-string.Methods Signature¶
|
Returns a new string by adding other string representation to the current string value. |
|
Checks if other string value is equal to the current value`. |
|
Returns the hash code of a data. |
|
Initializes an |
|
Iterates the string representation. |
|
Returns the string length of the |
|
Checks if other string value is unequal to the current value`. |
|
Returns a new string by adding other string representation to the current string value. |
Methods Definition¶
-
Id.
__add__
(other)¶ Returns a new string by adding other string representation to the current string value.
- Parameters
other (Union[str,
maxon.Id
,maxon.InternedId
]) – The other string value to add to the current id.- Returns
The new concatenated string.
- Return type
str
-
Id.
__eq__
(other)¶ Checks if other string value is equal to the current value`.
- Parameters
other (Union[str,
maxon.String
maxon.Id
,maxon.InternedId
]) – The other identifier to compare.- Returns
True if other is equal to the current value, otherwise False.
- Return type
bool
-
Id.
__hash__
()¶ Returns the hash code of a data.
-
Id.
__init__
(C=None)¶ Initializes an
maxon.Id
with the passed data, if a maxon.Data is passed a copy is done.- Parameters
C (Optional[
maxon.Data
]) – The input data to derive themaxon.Id
.
-
Id.
__iter__
()¶ Iterates the string representation.
-
Id.
__len__
()¶ Returns the string length of the
maxon.Id
.- Returns
String length of the current
maxon.Id
.- Return type
int
-
Id.
__ne__
(other)¶ Checks if other string value is unequal to the current value`.
- Parameters
other (Union[str,
maxon.String
maxon.Id
,maxon.InternedId
]) – The other identifier to compare.- Returns
True if other is unequal to the current value, otherwise False.
- Return type
bool
-
Id.
__radd__
(other)¶ Returns a new string by adding other string representation to the current string value.
- Parameters
other (Union[str,
maxon.Id
,maxon.InternedId
]) – The other string value to add to the current id.- Returns
The new concatenated string.
- Return type
str