class IpWildcard implements Serializable, Comparable<IpWildcard> {

  @JsonValue
  @Override
  public String toString() {
    if (_wildcardMask == 0L) {
      return _ip.toString();
    } else if (isPrefix()) {
      return toPrefix().toString();
    } else {
      return _ip + ":" + getWildcardMaskAsIp();
    }
  }

  private  IpWildcard(Ip address, long wildcardMask);

}