~ubuntu-branches/ubuntu/oneiric/commons-math/oneiric

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/math/util/BigRealField.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2010-04-05 23:33:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100405233302-gpqlceked76nw28a
Tags: 2.1-1
* New upstream release.
* Bump Standards-Version to 3.8.4: no changes needed
* Bump debhelper to >= 7
* Switch to 3.0 (quilt) source format:
  - Remove B-D on quilt
  - Add d/source/format
  - Remove d/README.source

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 * This class is a singleton.
28
28
 * </p>
29
29
 * @see BigReal
30
 
 * @version $Revision: 795912 $ $Date: 2009-07-20 12:51:09 -0400 (Mon, 20 Jul 2009) $
 
30
 * @version $Revision: 811827 $ $Date: 2009-09-06 11:32:50 -0400 (Sun, 06 Sep 2009) $
31
31
 * @since 2.0
32
32
 */
33
33
public class BigRealField implements Field<BigReal>, Serializable  {
57
57
        return BigReal.ZERO;
58
58
    }
59
59
 
 
60
    // CHECKSTYLE: stop HideUtilityClassConstructor
60
61
    /** Holder for the instance.
61
62
     * <p>We use here the Initialization On Demand Holder Idiom.</p>
62
63
     */
64
65
        /** Cached field instance. */
65
66
        private static final BigRealField INSTANCE = new BigRealField();
66
67
    }
 
68
    // CHECKSTYLE: resume HideUtilityClassConstructor
67
69
 
68
70
    /** Handle deserialization of the singleton.
69
71
     * @return the singleton instance
70
72
     */
71
73
    private Object readResolve() {
72
74
        // return the singleton instance
73
 
        return LazyHolder.INSTANCE; 
 
75
        return LazyHolder.INSTANCE;
74
76
    }
75
77
 
76
78
}