in messages/src/main/java/com/epam/deltix/timebase/messages/schema/SchemaFieldDataTransformation.java [156:175]
public boolean equals(Object obj) {
if (this == obj) return true;
if (!(obj instanceof SchemaFieldDataTransformation)) return false;
SchemaFieldDataTransformation other =(SchemaFieldDataTransformation)obj;
if (hasTransformationType() != other.hasTransformationType()) return false;
if (hasTransformationType() && getTransformationType() != other.getTransformationType()) return false;
if (hasDefaultValue() != other.hasDefaultValue()) return false;
if (hasDefaultValue()) {
if (getDefaultValue().length() != other.getDefaultValue().length()) return false; else {
CharSequence s1 = getDefaultValue();
CharSequence s2 = other.getDefaultValue();
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;
}
}
}
return true;
}