@Test public void testEquals() { new EqualsTester() .addEqualityGroup( IcmpTypesApplication.ALL, new IcmpTypesApplication(ImmutableList.of(new SubRange(0, IcmpApplication.MAX_TYPE)))) .addEqualityGroup( new IcmpTypesApplication(8), new IcmpTypesApplication(ImmutableList.of(SubRange.singleton(8)))) .addEqualityGroup(new IcmpTypesApplication(ImmutableList.of(new SubRange(0, 8)))) .addEqualityGroup(new IcmpTypesApplication(ImmutableList.of(new SubRange(8, 0)))) .addEqualityGroup( new IcmpTypesApplication( ImmutableList.of(SubRange.singleton(0), SubRange.singleton(8)))) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IcmpTypesApplication)) { return false; } IcmpTypesApplication that = (IcmpTypesApplication) o; return _types.equals(that._types); }
IcmpTypesApplication extends IcmpApplication { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IcmpTypesApplication)) { return false; } IcmpTypesApplication that = (IcmpTypesApplication) o; return _types.equals(that._types); } }
IcmpTypesApplication extends IcmpApplication { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IcmpTypesApplication)) { return false; } IcmpTypesApplication that = (IcmpTypesApplication) o; return _types.equals(that._types); } IcmpTypesApplication(int type);  IcmpTypesApplication(List<SubRange> types); }
IcmpTypesApplication extends IcmpApplication { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IcmpTypesApplication)) { return false; } IcmpTypesApplication that = (IcmpTypesApplication) o; return _types.equals(that._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 boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof IcmpTypesApplication)) { return false; } IcmpTypesApplication that = (IcmpTypesApplication) o; return _types.equals(that._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; }