@Override
  public boolean equals(final Object obj) {
    final ComparableNumber num;
    try {
      num = (ComparableNumber) obj;
    } catch (ClassCastException c) {
      return false;
    }
    return number.equals(num.getNumber());
  }