Esempio n. 1
0
  @Override
  public final boolean equals(final Object obj) {
    if (!(obj instanceof BaseToken)) {
      return false;
    }

    final BaseToken<?> other = (BaseToken<?>) obj;
    return Objects.equal(type, other.type)
        && Objects.equal(position, other.position)
        && Objects.equal(raw, other.raw)
        && Objects.equal(value, other.value);
  }
Esempio n. 2
0
 @Override
 public final String toString() {
   return Objects.toStringHelper(this)
       .add("type", type)
       .add("position", position)
       .add("raw", raw)
       .add("value", value)
       .toString();
 }
Esempio n. 3
0
 @Override
 public final int hashCode() {
   return Objects.hashCode(type, position, raw, value);
 }