code: public boolean contains(Object value) {
          if (value instanceof Integer) {
              return (Integer) value >= getFrom() && (Integer) value <= getTo();
          }
          if (value instanceof BigInteger) {
              BigInteger bigint = (BigInteger) value;
              return bigint.compareTo(BigInteger.valueOf(getFrom())) >= 0 &&
                      bigint.compareTo(BigInteger.valueOf(getTo())) <= 0;
          }
          return false;
      }
docs: {@inheritDoc}