public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null || !(obj is MonitorConfig)) { return(false); } MonitorConfig m = (MonitorConfig)obj; return(name.Equals(m.getName()) && tags.Equals(m.getTags()) && policy.Equals(m.getPublishingPolicy())); }
/** * Create a new builder initialized with the specified config. */ public Builder(MonitorConfig config) : this(config.getName()) { withTags(config.getTags()); withPublishingPolicy(config.getPublishingPolicy()); }