/** Pushes {@link #weight}, if it is not {@link Double#NaN}, or 1, otherwise, on the {@linkplain #weights stack of weights}; in either case, sets {@link #weight} to {@link Double#NaN}. */ protected void pushWeight() { weights.push( Double.isNaN( weight ) ? 1 : weight ); weight = Double.NaN; }
/** Pushes {@link #weight}, if it is not {@link Double#NaN}, or 1, otherwise, on the {@linkplain #weights stack of weights}; in either case, sets {@link #weight} to {@link Double#NaN}. */ protected void pushWeight() { weights.push( Double.isNaN( weight ) ? 1 : weight ); weight = Double.NaN; }
/** Pushes {@link #weight}, if it is not {@link Double#NaN}, or 1, otherwise, on the {@linkplain #weights stack of weights}; in either case, sets {@link #weight} to {@link Double#NaN}. */ protected void pushWeight() { weights.push( Double.isNaN( weight ) ? 1 : weight ); weight = Double.NaN; }
/** Pushes {@link #weight}, if it is not {@link Double#NaN}, or 1, otherwise, on the {@linkplain #weights stack of weights}; in either case, sets {@link #weight} to {@link Double#NaN}. */ protected void pushWeight() { weights.push( Double.isNaN( weight ) ? 1 : weight ); weight = Double.NaN; }