001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2005-2005 Julian Hyde
008// Copyright (C) 2005-2009 Pentaho
009// All Rights Reserved.
010*/
011package mondrian.olap.type;
012
013/**
014 * The type of a boolean expression.
015 *
016 * @author jhyde
017 * @since Feb 17, 2005
018 */
019public class BooleanType extends ScalarType {
020    /**
021     * Creates a BooleanType.
022     */
023    public BooleanType() {
024        super("BOOLEAN");
025    }
026
027    public boolean equals(Object obj) {
028        return obj instanceof BooleanType;
029    }
030
031    public boolean isInstance(Object value) {
032        return value instanceof Boolean;
033    }
034}
035
036// End BooleanType.java