< prev index next >

src/hotspot/share/utilities/numberSeq.hpp

Print this page
*** 81,10 ***
--- 81,13 ---
    double dsd() const; // decaying "standard deviation"
  
    // Debugging/Printing
    virtual void dump();
    virtual void dump_on(outputStream* s);
+ 
+   // Merge this AbsSeq into seq2, optionally clearing this AbsSeq
+   void merge(AbsSeq& seq2, bool clear_this = true);
  };
  
  class NumberSeq: public AbsSeq {
  private:
    bool check_nums(NumberSeq* total, int n, NumberSeq** parts);

*** 100,10 ***
--- 103,13 ---
    virtual double maximum() const { return _maximum; }
    virtual double last() const { return _last; }
  
    // Debugging/Printing
    virtual void dump_on(outputStream* s);
+ 
+   // Merge this NumberSeq into seq2, optionally clearing this NumberSeq
+   void merge(NumberSeq& seq2, bool clear_this = true);
  };
  
  class TruncatedSeq: public AbsSeq {
  private:
    enum PrivateConstants {

*** 127,8 ***
--- 133,11 ---
    double oldest() const; // the oldest valid value in the sequence
    double predict_next() const; // prediction based on linear regression
  
    // Debugging/Printing
    virtual void dump_on(outputStream* s);
+ 
+   // Merge this AbsSeq into seq2, optionally clearing this AbsSeq
+   void merge(AbsSeq& seq2, bool clear_this = true);
  };
  
  #endif // SHARE_UTILITIES_NUMBERSEQ_HPP
< prev index next >