@Override public int compareTo(WritableRawComparable o) { StringOption other = (StringOption) o; if (nullValue | other.nullValue) { if (nullValue & other.nullValue) { return 0; } return nullValue ? -1 : +1; } return compareTexts(entity, other.entity); }