@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    Range<?> range = (Range<?>)o;

    if (!myFrom.equals(range.myFrom)) return false;
    if (!myTo.equals(range.myTo)) return false;

    return true;
  }
@Override
  public boolean equals(Object o)