public DoubleDocValuesAnonymousClass(DistanceToShapeValueSource outerInstance, FunctionValues shapeValues) : base(outerInstance) { // LUCENENET specific - added guard clauses this.outerInstance = outerInstance ?? throw new ArgumentNullException(nameof(outerInstance)); this.shapeValues = shapeValues ?? throw new ArgumentNullException(nameof(shapeValues)); }
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } DistanceToShapeValueSource that = (DistanceToShapeValueSource)o; if (!queryPoint.Equals(that.queryPoint)) { return(false); } if (that.multiplier.CompareTo(multiplier) != 0) { return(false); } if (!shapeValueSource.Equals(that.shapeValueSource)) { return(false); } if (!distCalc.Equals(that.distCalc)) { return(false); } return(true); }
public DoubleDocValuesAnonymousHelper(DistanceToShapeValueSource outerInstance, FunctionValues shapeValues) : base(outerInstance) { this.outerInstance = outerInstance; this.shapeValues = shapeValues; }