@Test public void testIpProtocolsToAclLineMatchExpr() { assertEquals( PacketHeaderConstraintsToAclLineMatchExprUtils.ipProtocolsToAclLineMatchExpr( ImmutableSet.of(IpProtocol.TCP)), match(HeaderSpace.builder().setIpProtocols(ImmutableList.of(IpProtocol.TCP)).build())); }
@Nullable static AclLineMatchExpr ipProtocolsToAclLineMatchExpr(@Nullable Set<IpProtocol> ipProtocols) { return Optional.ofNullable(ipProtocols) .map(k -> match(HeaderSpace.builder().setIpProtocols(k).build())) .orElse(null); }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr ipProtocolsToAclLineMatchExpr(@Nullable Set<IpProtocol> ipProtocols) { return Optional.ofNullable(ipProtocols) .map(k -> match(HeaderSpace.builder().setIpProtocols(k).build())) .orElse(null); } }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr ipProtocolsToAclLineMatchExpr(@Nullable Set<IpProtocol> ipProtocols) { return Optional.ofNullable(ipProtocols) .map(k -> match(HeaderSpace.builder().setIpProtocols(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils(); }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr ipProtocolsToAclLineMatchExpr(@Nullable Set<IpProtocol> ipProtocols) { return Optional.ofNullable(ipProtocols) .map(k -> match(HeaderSpace.builder().setIpProtocols(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils();  }
PacketHeaderConstraintsToAclLineMatchExprUtils { @Nullable static AclLineMatchExpr ipProtocolsToAclLineMatchExpr(@Nullable Set<IpProtocol> ipProtocols) { return Optional.ofNullable(ipProtocols) .map(k -> match(HeaderSpace.builder().setIpProtocols(k).build())) .orElse(null); } private  PacketHeaderConstraintsToAclLineMatchExprUtils();   }