@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new AssignPortFromPool(DEST_NAT, DESTINATION, 3000, 4000), new AssignPortFromPool(DEST_NAT, DESTINATION, 3000, 4000)) .addEqualityGroup(new AssignPortFromPool(SOURCE_NAT, DESTINATION, 3000, 4000)) .addEqualityGroup(new AssignPortFromPool(DEST_NAT, SOURCE, 3000, 4000)) .addEqualityGroup(new AssignPortFromPool(DEST_NAT, DESTINATION, 5000, 4000)) .addEqualityGroup(new AssignPortFromPool(DEST_NAT, DESTINATION, 3000, 5000)) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AssignPortFromPool)) { return false; } AssignPortFromPool that = (AssignPortFromPool) o; return _type == that._type && _portField == that._portField && _poolStart == that._poolStart && _poolEnd == that._poolEnd; }
AssignPortFromPool implements TransformationStep, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AssignPortFromPool)) { return false; } AssignPortFromPool that = (AssignPortFromPool) o; return _type == that._type && _portField == that._portField && _poolStart == that._poolStart && _poolEnd == that._poolEnd; } }
AssignPortFromPool implements TransformationStep, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AssignPortFromPool)) { return false; } AssignPortFromPool that = (AssignPortFromPool) o; return _type == that._type && _portField == that._portField && _poolStart == that._poolStart && _poolEnd == that._poolEnd; } AssignPortFromPool(
      TransformationType type, PortField portField, int poolStart, int poolEnd); }
AssignPortFromPool implements TransformationStep, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AssignPortFromPool)) { return false; } AssignPortFromPool that = (AssignPortFromPool) o; return _type == that._type && _portField == that._portField && _poolStart == that._poolStart && _poolEnd == that._poolEnd; } AssignPortFromPool(
      TransformationType type, PortField portField, int poolStart, int poolEnd); @Override T accept(TransformationStepVisitor<T> visitor); @JsonProperty(PROP_PORT_FIELD) PortField getPortField(); @JsonProperty(PROP_POOL_START) int getPoolStart(); @JsonProperty(PROP_POOL_END) int getPoolEnd(); @JsonProperty(PROP_TRANSFORMATION_TYPE) TransformationType getType(); @Override boolean equals(Object o); @Override int hashCode(); }
AssignPortFromPool implements TransformationStep, Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AssignPortFromPool)) { return false; } AssignPortFromPool that = (AssignPortFromPool) o; return _type == that._type && _portField == that._portField && _poolStart == that._poolStart && _poolEnd == that._poolEnd; } AssignPortFromPool(
      TransformationType type, PortField portField, int poolStart, int poolEnd); @Override T accept(TransformationStepVisitor<T> visitor); @JsonProperty(PROP_PORT_FIELD) PortField getPortField(); @JsonProperty(PROP_POOL_START) int getPoolStart(); @JsonProperty(PROP_POOL_END) int getPoolEnd(); @JsonProperty(PROP_TRANSFORMATION_TYPE) TransformationType getType(); @Override boolean equals(Object o); @Override int hashCode(); static final ImmutableSet<IpProtocol> PORT_TRANSFORMATION_PROTOCOLS; }