/*******************************************************************************
 * This file is part of TERMINAL RECALL
 * Copyright (c) 2012-2015 Chuck Ritola
 * Part of the jTRFP.org project
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v3.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/gpl.html
 * 
 * Contributors:
 *     chuck - initial API and implementation
 ******************************************************************************/

package org.jtrfp.trcl.mem;


public abstract class Address extends Number {

    /**
     * 
     */
    private static final long serialVersionUID = -2924146452695795547L;
    
    public abstract ByteAddress asByteAddress();
    
    protected Address(){}
    
    public VEC4Address asVEC4Address(){
	return new VEC4Address(asByteAddress());
    }
    
    public PageAddress asPageAddress(){
	return new PageAddress(asByteAddress());
    }

}//end Address

@@ -1017,16 +1017,104 @@
 );%0A    %7D
+%0A    %0A    @Override%0A    public int hashCode()%7B%0A%09return asByteAddress().intValue();%0A    %7D
 %0A%0A%7D//end

Address returns byte address as hash.