/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = (prime * result) + ((this.sensor == null) ? 0 : this.sensor.hashCode()); return result; }
/** * Copies all the class/method information from the {@link MethodInstrumentationConfig} to the * {@link AbstractSensorConfig}. * * @param asc * {@link AbstractSensorConfig} * @param config * {@link MethodInstrumentationConfig} */ private void copyInfo(AbstractSensorConfig asc, MethodInstrumentationConfig config) { asc.setTargetClassFqn(config.getTargetClassFqn()); asc.setTargetMethodName(config.getTargetMethodName()); asc.setReturnType(config.getReturnType()); asc.setParameterTypes(config.getParameterTypes()); }
/** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } SpecialSensorConfig other = (SpecialSensorConfig) obj; if (this.sensor == null) { if (other.sensor != null) { return false; } } else if (!this.sensor.equals(other.sensor)) { return false; } return true; }
return true; if (!super.equals(obj)) { return false;
/** * {@inheritDoc} */ @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = (prime * result) + ((this.methodSensors == null) ? 0 : this.methodSensors.hashCode()); result = (prime * result) + ((this.methodSensorsReverse == null) ? 0 : this.methodSensorsReverse.hashCode()); result = (prime * result) + ((this.propertyAccessorList == null) ? 0 : this.propertyAccessorList.hashCode()); result = (prime * result) + ((this.settings == null) ? 0 : this.settings.hashCode()); result = (prime * result) + (this.startsInvocation ? 1231 : 1237); return result; }