@Test public void testCloning() throws CloneNotSupportedException { MyComparableObjectSeries s1 = new MyComparableObjectSeries("A"); s1.add(new Integer(1), "ABC"); MyComparableObjectSeries s2 = (MyComparableObjectSeries) s1.clone(); assertNotSame(s1, s2); assertSame(s1.getClass(), s2.getClass()); assertEquals(s1, s2); }
protected void add(Comparable x, Object y) { add(x, y, true); }
ComparableObjectSeries extends Series implements Cloneable, Serializable { protected void add(Comparable x, Object y) { add(x, y, true); } }
ComparableObjectSeries extends Series implements Cloneable, Serializable { protected void add(Comparable x, Object y) { add(x, y, true); } ComparableObjectSeries(Comparable key);  ComparableObjectSeries(Comparable key, boolean autoSort,
            boolean allowDuplicateXValues); }
ComparableObjectSeries extends Series implements Cloneable, Serializable { protected void add(Comparable x, Object y) { add(x, y, true); } ComparableObjectSeries(Comparable key);  ComparableObjectSeries(Comparable key, boolean autoSort,
            boolean allowDuplicateXValues); boolean getAutoSort(); boolean getAllowDuplicateXValues(); @Override int getItemCount(); int getMaximumItemCount(); void setMaximumItemCount(int maximum); int indexOf(Comparable x); void clear(); ComparableObjectItem remove(Comparable x); @Override boolean equals(Object obj); @Override int hashCode(); }
ComparableObjectSeries extends Series implements Cloneable, Serializable { protected void add(Comparable x, Object y) { add(x, y, true); } ComparableObjectSeries(Comparable key);  ComparableObjectSeries(Comparable key, boolean autoSort,
            boolean allowDuplicateXValues); boolean getAutoSort(); boolean getAllowDuplicateXValues(); @Override int getItemCount(); int getMaximumItemCount(); void setMaximumItemCount(int maximum); int indexOf(Comparable x); void clear(); ComparableObjectItem remove(Comparable x); @Override boolean equals(Object obj); @Override int hashCode();  }