public boolean equals()

in messages/src/main/java/com/epam/deltix/timebase/messages/qql/Argument.java [158:177]


  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (!(obj instanceof Argument)) return false;
    Argument other =(Argument)obj;
    if (hasName() != other.hasName()) return false;
    if (hasName()) {
      if (getName().length() != other.getName().length()) return false; else {
        CharSequence s1 = getName();
        CharSequence s2 = other.getName();
        if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
          if (!s1.equals(s2)) return false;
        } else {
          if (!CharSequenceUtils.equals(s1, s2)) return false;
        }
      }
    }
    if (hasDataType() != other.hasDataType()) return false;
    if (hasDataType() && !(getDataType().equals(other.getDataType()))) return false;
    return true;
  }