@Override
        public boolean equals(Object o) {
            if ( ! (o instanceof Alternative other)) return false;
            if ( ! Objects.equals(this.word, other.word)) return false;
            if (this.exactness != other.exactness) return false;
            return true;
        }
A word alternative. This is a value object.
container-search/src/main/java/com/yahoo/prelude/query/WordAlternativesItem.java