001    /*
002    // $Id: //open/mondrian/src/main/mondrian/olap/type/NumericType.java#5 $
003    // This software is subject to the terms of the Common Public License
004    // Agreement, available at the following URL:
005    // http://www.opensource.org/licenses/cpl.html.
006    // Copyright (C) 2005-2008 Julian Hyde
007    // All Rights Reserved.
008    // You must accept the terms of that agreement to use this software.
009    */
010    package mondrian.olap.type;
011    
012    import mondrian.olap.Dimension;
013    import mondrian.olap.Hierarchy;
014    
015    /**
016     * The type of a numeric expression.
017     *
018     * @author jhyde
019     * @since Feb 17, 2005
020     * @version $Id: //open/mondrian/src/main/mondrian/olap/type/NumericType.java#5 $
021     */
022    public class NumericType extends ScalarType {
023    
024        /**
025         * Creates a numeric type.
026         */
027        public NumericType() {
028            this("NUMERIC");
029        }
030    
031        protected NumericType(String digest) {
032            super(digest);
033        }
034    
035        public boolean equals(Object obj) {
036            return obj instanceof NumericType
037                && toString().equals(obj.toString());
038        }
039    }
040    
041    // End NumericType.java