class IndexRangeConstraint extends Constraint implements Writable {

  @Override
  public String toString() {
    boolean startNotNull = false;
    StringBuilder sb = new StringBuilder();
    sb.append("IndexRangeConstraint(");

    if (range != null && range.getStart() != null) {
      sb.append(range.getStart().hashCode());
      startNotNull = true;
    }

    if (range != null && range.getEnd() != null) {
      if (startNotNull) {
        sb.append(", ");
      }
      sb.append(range.getEnd().hashCode());
    }
    sb.append(")");
    return sb.toString();
  }

  public  IndexRangeConstraint(Index index, CRange range);
  public  IndexRangeConstraint();

}