@Test public void testToAclLineMatchExpr_all() { assertEquals( IcmpTypesApplication.ALL.toAclLineMatchExpr(), new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(IpProtocol.ICMP) .setIcmpTypes(ImmutableList.of(new SubRange(0, IcmpApplication.MAX_TYPE))) .build())); }
@Override public AclLineMatchExpr toAclLineMatchExpr() { return new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.ICMP).setIcmpTypes(_types).build()); }
IcmpTypesApplication extends IcmpApplication { @Override public AclLineMatchExpr toAclLineMatchExpr() { return new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.ICMP).setIcmpTypes(_types).build()); } }
IcmpTypesApplication extends IcmpApplication { @Override public AclLineMatchExpr toAclLineMatchExpr() { return new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.ICMP).setIcmpTypes(_types).build()); } IcmpTypesApplication(int type);  IcmpTypesApplication(List<SubRange> types); }
IcmpTypesApplication extends IcmpApplication { @Override public AclLineMatchExpr toAclLineMatchExpr() { return new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.ICMP).setIcmpTypes(_types).build()); } IcmpTypesApplication(int type);  IcmpTypesApplication(List<SubRange> types); @Nonnull List<SubRange> getTypes(); @Override AclLineMatchExpr toAclLineMatchExpr(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override T accept(ApplicationVisitor<T> visitor); }
IcmpTypesApplication extends IcmpApplication { @Override public AclLineMatchExpr toAclLineMatchExpr() { return new MatchHeaderSpace( HeaderSpace.builder().setIpProtocols(IpProtocol.ICMP).setIcmpTypes(_types).build()); } IcmpTypesApplication(int type);  IcmpTypesApplication(List<SubRange> types); @Nonnull List<SubRange> getTypes(); @Override AclLineMatchExpr toAclLineMatchExpr(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override T accept(ApplicationVisitor<T> visitor); static final IcmpTypesApplication ALL; }