MCPcopy
hub / github.com/google/earthengine-api / equals

Method equals

python/ee/ee_string.py:129–139  ·  view source on GitHub ↗

Checks for string equality with a given object. Args: target: The second object to check for equality. Returns: True if the target is a string and is lexicographically equal to the reference, or false otherwise.

(self, target: _arg_types.String)

Source from the content-addressed store, hash-verified

127 return apifunction.ApiFunction.call_('String.encodeJSON', object)
128
129 def equals(self, target: _arg_types.String) -> computedobject.ComputedObject:
130 """Checks for string equality with a given object.
131
132 Args:
133 target: The second object to check for equality.
134
135 Returns:
136 True if the target is a string and is lexicographically equal to the
137 reference, or false otherwise.
138 """
139 return apifunction.ApiFunction.call_(f'{self.name()}.equals', self, target)
140
141 def index(self, pattern: _arg_types.String) -> ee_number.Number:
142 """Searches a string for the first occurrence of a substring.

Callers

nothing calls this directly

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by

no test coverage detected