@Test public void testDscpsToAclLineMatchExpr() { assertEquals( PacketHeaderConstraintsToAclLineMatchExprUtils.dscpsToAclLineMatchExpr( IntegerSpace.of(new SubRange(10, 11))), match(HeaderSpace.builder().setDscps(ImmutableList.of(10, 11)).build())); }
@Nullable static AclLineMatchExpr dscpsToAclLineMatchExpr(@Nullable IntegerSpace dscps) { return Optional.ofNullable(dscps) .map(IntegerSpace::enumerate) .map(k -> match(HeaderSpace.builder().setDscps(k).build())) .orElse(null); }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr dscpsToAclLineMatchExpr(@Nullable IntegerSpace dscps) { return Optional.ofNullable(dscps) .map(IntegerSpace::enumerate) .map(k -> match(HeaderSpace.builder().setDscps(k).build())) .orElse(null); } }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr dscpsToAclLineMatchExpr(@Nullable IntegerSpace dscps) { return Optional.ofNullable(dscps) .map(IntegerSpace::enumerate) .map(k -> match(HeaderSpace.builder().setDscps(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils(); }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr dscpsToAclLineMatchExpr(@Nullable IntegerSpace dscps) { return Optional.ofNullable(dscps) .map(IntegerSpace::enumerate) .map(k -> match(HeaderSpace.builder().setDscps(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils();  }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr dscpsToAclLineMatchExpr(@Nullable IntegerSpace dscps) { return Optional.ofNullable(dscps) .map(IntegerSpace::enumerate) .map(k -> match(HeaderSpace.builder().setDscps(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils();   }