commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r618097 - in /commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive: SummaryStatistics.java SynchronizedSummaryStatistics.java
Date Sun, 03 Feb 2008 21:39:09 GMT
Author: luc
Date: Sun Feb  3 13:39:08 2008
New Revision: 618097

URL: http://svn.apache.org/viewvc?rev=618097&view=rev
Log:
moved synchronized setters/getters from SummaryStatistics to SynchronizedSummaryStatistics
JIRA: MATH-183

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java?rev=618097&r1=618096&r2=618097&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SummaryStatistics.java
Sun Feb  3 13:39:08 2008
@@ -385,7 +385,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the sum
      */
-    public synchronized StorelessUnivariateStatistic getSumImpl() {
+    public StorelessUnivariateStatistic getSumImpl() {
         return sumImpl;
     }
 
@@ -400,7 +400,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setSumImpl(StorelessUnivariateStatistic sumImpl) {
+    public void setSumImpl(StorelessUnivariateStatistic sumImpl) {
         checkEmpty();
         this.sumImpl = sumImpl;
     }
@@ -410,7 +410,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the sum of squares
      */
-    public synchronized StorelessUnivariateStatistic getSumsqImpl() {
+    public StorelessUnivariateStatistic getSumsqImpl() {
         return sumsqImpl;
     }
 
@@ -425,7 +425,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setSumsqImpl(
+    public void setSumsqImpl(
             StorelessUnivariateStatistic sumsqImpl) {
         checkEmpty();
         this.sumsqImpl = sumsqImpl;
@@ -436,7 +436,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the minimum
      */
-    public synchronized StorelessUnivariateStatistic getMinImpl() {
+    public StorelessUnivariateStatistic getMinImpl() {
         return minImpl;
     }
 
@@ -451,7 +451,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setMinImpl(StorelessUnivariateStatistic minImpl) {
+    public void setMinImpl(StorelessUnivariateStatistic minImpl) {
         checkEmpty();
         this.minImpl = minImpl;
     }
@@ -461,7 +461,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the maximum
      */
-    public synchronized StorelessUnivariateStatistic getMaxImpl() {
+    public StorelessUnivariateStatistic getMaxImpl() {
         return maxImpl;
     }
 
@@ -476,7 +476,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setMaxImpl(StorelessUnivariateStatistic maxImpl) {
+    public void setMaxImpl(StorelessUnivariateStatistic maxImpl) {
         checkEmpty();
         this.maxImpl = maxImpl;
     }
@@ -486,7 +486,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the log sum
      */
-    public synchronized StorelessUnivariateStatistic getSumLogImpl() {
+    public StorelessUnivariateStatistic getSumLogImpl() {
         return sumLogImpl;
     }
 
@@ -501,7 +501,7 @@
      * @throws IllegalStateException if data has already been added 
      *  (i.e if n > 0)
      */
-    public synchronized void setSumLogImpl(
+    public void setSumLogImpl(
             StorelessUnivariateStatistic sumLogImpl) {
         checkEmpty();
         this.sumLogImpl = sumLogImpl;
@@ -512,7 +512,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the geometric mean
      */
-    public synchronized StorelessUnivariateStatistic getGeoMeanImpl() {
+    public StorelessUnivariateStatistic getGeoMeanImpl() {
         return geoMeanImpl;
     }
 
@@ -527,7 +527,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setGeoMeanImpl(
+    public void setGeoMeanImpl(
             StorelessUnivariateStatistic geoMeanImpl) {
         checkEmpty();
         this.geoMeanImpl = geoMeanImpl;
@@ -538,7 +538,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the mean
      */
-    public synchronized StorelessUnivariateStatistic getMeanImpl() {
+    public StorelessUnivariateStatistic getMeanImpl() {
         return meanImpl;
     }
 
@@ -553,7 +553,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setMeanImpl(
+    public void setMeanImpl(
             StorelessUnivariateStatistic meanImpl) {
         checkEmpty();
         this.meanImpl = meanImpl;
@@ -564,7 +564,7 @@
      * 
      * @return the StorelessUnivariateStatistic implementing the variance
      */
-    public synchronized StorelessUnivariateStatistic getVarianceImpl() {
+    public StorelessUnivariateStatistic getVarianceImpl() {
         return varianceImpl;
     }
 
@@ -579,7 +579,7 @@
      * @throws IllegalStateException if data has already been added
      *  (i.e if n > 0)
      */
-    public synchronized void setVarianceImpl(
+    public void setVarianceImpl(
             StorelessUnivariateStatistic varianceImpl) {
         checkEmpty();
         this.varianceImpl = varianceImpl;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java?rev=618097&r1=618096&r2=618097&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptive/SynchronizedSummaryStatistics.java
Sun Feb  3 13:39:08 2008
@@ -146,4 +146,116 @@
         return super.hashCode();
     }
 
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getSumImpl() {
+        return super.getSumImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setSumImpl(StorelessUnivariateStatistic sumImpl) {
+        super.setSumImpl(sumImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumsqImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getSumsqImpl() {
+        return super.getSumsqImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumsqImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setSumsqImpl(StorelessUnivariateStatistic sumsqImpl) {
+        super.setSumsqImpl(sumsqImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMinImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getMinImpl() {
+        return super.getMinImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMinImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setMinImpl(StorelessUnivariateStatistic minImpl) {
+        super.setMinImpl(minImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMaxImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getMaxImpl() {
+        return super.getMaxImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMaxImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setMaxImpl(StorelessUnivariateStatistic maxImpl) {
+        super.setMaxImpl(maxImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getSumLogImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getSumLogImpl() {
+        return super.getSumLogImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setSumLogImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setSumLogImpl(StorelessUnivariateStatistic sumLogImpl) {
+        super.setSumLogImpl(sumLogImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getGeoMeanImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getGeoMeanImpl() {
+        return super.getGeoMeanImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setGeoMeanImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setGeoMeanImpl(StorelessUnivariateStatistic geoMeanImpl) {
+        super.setGeoMeanImpl(geoMeanImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getMeanImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getMeanImpl() {
+        return super.getMeanImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setMeanImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setMeanImpl(StorelessUnivariateStatistic meanImpl) {
+        super.setMeanImpl(meanImpl);
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#getVarianceImpl()
+     */
+    public synchronized StorelessUnivariateStatistic getVarianceImpl() {
+        return super.getVarianceImpl();
+    }
+
+    /**
+     * @see org.apache.commons.math.stat.descriptive.SummaryStatistics#setVarianceImpl(StorelessUnivariateStatistic)
+     */
+    public synchronized void setVarianceImpl(StorelessUnivariateStatistic varianceImpl) {
+        super.setVarianceImpl(varianceImpl);
+    }
+    
 }



Mime
View raw message