@Test public void testEquals() { Builder builder = builder(); AddressFamilyCapabilities afs = builder.build(); new EqualsTester() .addEqualityGroup(afs, afs, builder.build()) .addEqualityGroup(builder.setAdditionalPathsReceive(true).build()) .addEqualityGroup(builder.setAdditionalPathsSelectAll(true).build()) .addEqualityGroup(builder.setAdditionalPathsSend(true).build()) .addEqualityGroup(builder.setAdvertiseExternal(true).build()) .addEqualityGroup(builder.setAdvertiseInactive(true).build()) .addEqualityGroup(builder.setAllowLocalAsIn(true).build()) .addEqualityGroup(builder.setAllowRemoteAsOut(true).build()) .addEqualityGroup(builder.setSendCommunity(true).build()) .addEqualityGroup(builder.setSendExtendedCommunity(true).build()) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddressFamilyCapabilities)) { return false; } AddressFamilyCapabilities that = (AddressFamilyCapabilities) o; return _additionalPathsReceive == that._additionalPathsReceive && _additionalPathsSelectAll == that._additionalPathsSelectAll && _additionalPathsSend == that._additionalPathsSend && _advertiseExternal == that._advertiseExternal && _advertiseInactive == that._advertiseInactive && _allowLocalAsIn == that._allowLocalAsIn && _allowRemoteAsOut == that._allowRemoteAsOut && _sendCommunity == that._sendCommunity && _sendExtendedCommunity == that._sendExtendedCommunity; }
AddressFamilyCapabilities implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddressFamilyCapabilities)) { return false; } AddressFamilyCapabilities that = (AddressFamilyCapabilities) o; return _additionalPathsReceive == that._additionalPathsReceive && _additionalPathsSelectAll == that._additionalPathsSelectAll && _additionalPathsSend == that._additionalPathsSend && _advertiseExternal == that._advertiseExternal && _advertiseInactive == that._advertiseInactive && _allowLocalAsIn == that._allowLocalAsIn && _allowRemoteAsOut == that._allowRemoteAsOut && _sendCommunity == that._sendCommunity && _sendExtendedCommunity == that._sendExtendedCommunity; } }
AddressFamilyCapabilities implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddressFamilyCapabilities)) { return false; } AddressFamilyCapabilities that = (AddressFamilyCapabilities) o; return _additionalPathsReceive == that._additionalPathsReceive && _additionalPathsSelectAll == that._additionalPathsSelectAll && _additionalPathsSend == that._additionalPathsSend && _advertiseExternal == that._advertiseExternal && _advertiseInactive == that._advertiseInactive && _allowLocalAsIn == that._allowLocalAsIn && _allowRemoteAsOut == that._allowRemoteAsOut && _sendCommunity == that._sendCommunity && _sendExtendedCommunity == that._sendExtendedCommunity; } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); }
AddressFamilyCapabilities implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddressFamilyCapabilities)) { return false; } AddressFamilyCapabilities that = (AddressFamilyCapabilities) o; return _additionalPathsReceive == that._additionalPathsReceive && _additionalPathsSelectAll == that._additionalPathsSelectAll && _additionalPathsSend == that._additionalPathsSend && _advertiseExternal == that._advertiseExternal && _advertiseInactive == that._advertiseInactive && _allowLocalAsIn == that._allowLocalAsIn && _allowRemoteAsOut == that._allowRemoteAsOut && _sendCommunity == that._sendCommunity && _sendExtendedCommunity == that._sendExtendedCommunity; } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); @JsonProperty(PROP_ADDITIONAL_PATHS_RECEIVE) boolean getAdditionalPathsReceive(); @JsonProperty(PROP_ADDITIONAL_PATHS_SELECT_ALL) boolean getAdditionalPathsSelectAll(); @JsonProperty(PROP_ADDITIONAL_PATHS_SEND) boolean getAdditionalPathsSend(); @JsonProperty(PROP_ADVERTISE_EXTERNAL) boolean getAdvertiseExternal(); @JsonProperty(PROP_ADVERTISE_INACTIVE) boolean getAdvertiseInactive(); @JsonProperty(PROP_ALLOW_LOCAL_AS_IN) boolean getAllowLocalAsIn(); @JsonProperty(PROP_ALLOW_REMOTE_AS_OUT) boolean getAllowRemoteAsOut(); @JsonProperty(PROP_SEND_COMMUNITY) boolean getSendCommunity(); @JsonProperty(PROP_SEND_EXTENDED_COMMUNITY) boolean getSendExtendedCommunity(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); static Builder builder(); }
AddressFamilyCapabilities implements Serializable { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof AddressFamilyCapabilities)) { return false; } AddressFamilyCapabilities that = (AddressFamilyCapabilities) o; return _additionalPathsReceive == that._additionalPathsReceive && _additionalPathsSelectAll == that._additionalPathsSelectAll && _additionalPathsSend == that._additionalPathsSend && _advertiseExternal == that._advertiseExternal && _advertiseInactive == that._advertiseInactive && _allowLocalAsIn == that._allowLocalAsIn && _allowRemoteAsOut == that._allowRemoteAsOut && _sendCommunity == that._sendCommunity && _sendExtendedCommunity == that._sendExtendedCommunity; } private  AddressFamilyCapabilities(
      boolean additionalPathsReceive,
      boolean additionalPathsSelectAll,
      boolean additionalPathsSend,
      boolean advertiseExternal,
      boolean advertiseInactive,
      boolean allowLocalAsIn,
      boolean allowRemoteAsOut,
      boolean sendCommunity,
      boolean sendExtendedCommunity); @JsonProperty(PROP_ADDITIONAL_PATHS_RECEIVE) boolean getAdditionalPathsReceive(); @JsonProperty(PROP_ADDITIONAL_PATHS_SELECT_ALL) boolean getAdditionalPathsSelectAll(); @JsonProperty(PROP_ADDITIONAL_PATHS_SEND) boolean getAdditionalPathsSend(); @JsonProperty(PROP_ADVERTISE_EXTERNAL) boolean getAdvertiseExternal(); @JsonProperty(PROP_ADVERTISE_INACTIVE) boolean getAdvertiseInactive(); @JsonProperty(PROP_ALLOW_LOCAL_AS_IN) boolean getAllowLocalAsIn(); @JsonProperty(PROP_ALLOW_REMOTE_AS_OUT) boolean getAllowRemoteAsOut(); @JsonProperty(PROP_SEND_COMMUNITY) boolean getSendCommunity(); @JsonProperty(PROP_SEND_EXTENDED_COMMUNITY) boolean getSendExtendedCommunity(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); static Builder builder();  }