class_docstr: A time-based amount of time, such as '34.5 seconds'.
class_docstr_tok: ["A","time-based","amount","of","time",",","such","as","'34.5","seconds","'","."]
code: def __eq__(self, other):
      return isinstance(other, Duration) and self._j_duration.equals(
          other._j_duration
      )
  
imports: from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 8 for calling the Duration obj's underlying member method code with example usage: obj.__eq__(other) and returns: unknown