@Test public void testToString() { assertThat(IcmpTypesApplication.ALL.toString(), equalTo("icmp")); assertThat(new IcmpTypesApplication(8).toString(), equalTo("icmp/8")); assertThat( new IcmpTypesApplication(ImmutableList.of(new SubRange(0, 8))).toString(), equalTo("icmp/0-8")); assertThat( new IcmpTypesApplication(ImmutableList.of(SubRange.singleton(4), new SubRange(0, 8))) .toString(), equalTo("icmp/4,0-8")); }
@Override public String toString() { if (ALL.equals(this)) { return "icmp"; } return "icmp/" + stringifySubRanges(_types); }
IcmpTypesApplication extends IcmpApplication { @Override public String toString() { if (ALL.equals(this)) { return "icmp"; } return "icmp/" + stringifySubRanges(_types); } }
IcmpTypesApplication extends IcmpApplication { @Override public String toString() { if (ALL.equals(this)) { return "icmp"; } return "icmp/" + stringifySubRanges(_types); } IcmpTypesApplication(int type);  IcmpTypesApplication(List<SubRange> types); }
IcmpTypesApplication extends IcmpApplication { @Override public String toString() { if (ALL.equals(this)) { return "icmp"; } return "icmp/" + stringifySubRanges(_types); } 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 String toString() { if (ALL.equals(this)) { return "icmp"; } return "icmp/" + stringifySubRanges(_types); } 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; }