class PacketHeaderConstraintsToAclLineMatchExprUtils {

  @Nullable
  static AclLineMatchExpr dstPortsToAclLineMatchExpr(@Nullable IntegerSpace dstPorts) {
    return Optional.ofNullable(dstPorts)
        .map(IntegerSpace::getSubRanges)
        .map(k -> match(HeaderSpace.builder().setDstPorts(k).build()))
        .orElse(null);
  }

  private  PacketHeaderConstraintsToAclLineMatchExprUtils();

}