/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* ident "%Z%%M% %I% %E% SMI"
*/
/**
* A numeric value generated by a D aggregating action such as {@code
* count()} or {@code sum()}.
* <p>
* Immutable.
*
* @author Tom Erickson
*/
abstract class AbstractAggregationValue
implements AggregationValue, Serializable
{
/** @serial */
public
AbstractAggregationValue(long v)
{
}
public
AbstractAggregationValue(double v)
{
}
public Number
getValue()
{
return value;
}
/**
* Compares the specified object with this aggregation value for
* equality. Defines equality as having the same type and the same
* numeric value.
*
* @return {@code true} if and only if the specified object is an
* aggregation value of the same {@code Class} as this value, and
* both values return equal numbers from {@link #getValue()}.
*/
public boolean
{
if (o instanceof AbstractAggregationValue) {
}
return false;
}
/**
* Overridden to ensure that equal instances have equal hash codes.
*/
public int
hashCode()
{
}
/**
* Gets the string representation of {@link #getValue()}.
*
* @return the string representation of {@link #getValue()} returned
* by {@link Object#toString()}
*/
public String
toString()
{
}
}