diff options
Diffstat (limited to 'plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMNumberBeanProxy.java')
-rw-r--r-- | plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMNumberBeanProxy.java | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMNumberBeanProxy.java b/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMNumberBeanProxy.java deleted file mode 100644 index 268ac32db..000000000 --- a/plugins/org.eclipse.jem.proxy/proxyRemote/org/eclipse/jem/internal/proxy/remote/REMNumberBeanProxy.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.eclipse.jem.internal.proxy.remote; -/******************************************************************************* - * Copyright (c) 2001, 2003 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -/* - * $RCSfile: REMNumberBeanProxy.java,v $ - * $Revision: 1.3 $ $Date: 2005/05/11 22:41:24 $ - */ - - -import org.eclipse.jem.internal.proxy.core.*; - -/** - * Remote Implementation of INumberBeanProxy for any Number (i.e. the non-primitives) - * It can answer all of the primitive number types (int, long, short, byte, double, float). - * Creation date: (2/6/00 9:02:54 AM) - * @author: Joe Winchester - */ -abstract class REMNumberBeanProxy extends REMConstantBeanProxy implements INumberBeanProxy { - private final Number fNumberValue; - -/** - * It is package protected because they are created - * in a special way and no one else should create them. - * @param aBean java.lang.Object - */ -REMNumberBeanProxy(REMProxyFactoryRegistry aRegistry, Number aNumber) { - super(aRegistry); - fNumberValue = aNumber; -} -/** - * equals: Equal if: - * 1) This proxy == (identity) to the other object - * 2) Else if other is an IBeanProxy and not a constant one, then if - * equals on the server. - * 3) If this is a constant proxy and the other is too or is a constant - * value (e.g. IStringBeanProxy.equals(String), then true if values are equals. - */ -public boolean equals(Object anObject) { - if (this == anObject) - return true; // Identity - if (anObject instanceof REMNumberBeanProxy) - return fNumberValue.equals(((REMNumberBeanProxy) anObject).numberValue()); - if (anObject instanceof Number) - return fNumberValue.equals(anObject); - return false; -} -/** - * byteValue method comment. - */ -public byte byteValue() { - return fNumberValue.byteValue(); -} -/** - * doubleValue method comment. - */ -public double doubleValue() { - return fNumberValue.doubleValue(); -} -/** - * floatValue method comment. - */ -public float floatValue() { - return fNumberValue.floatValue(); -} -/** - * Return the int value - */ -public int intValue() { - return fNumberValue.intValue(); -} -/** - * longValue method comment. - */ -public long longValue() { - return fNumberValue.longValue(); -} -/** - * numberValue method comment. - */ -public Number numberValue() { - return fNumberValue; -} -/** - * shortValue method comment. - */ -public short shortValue() { - return fNumberValue.shortValue(); -} - -/** - * The bean's toString. - */ -public String toBeanString() { - return fNumberValue.toString(); -} -} - - |