net.sourceforge.geeboss.model.midi.memory
Class MemoryMap.MemoryArea

java.lang.Object
  extended by net.sourceforge.geeboss.model.midi.memory.MemoryMap.MemoryArea
All Implemented Interfaces:
java.lang.Comparable<MemoryMap.MemoryArea>
Enclosing class:
MemoryMap

public static class MemoryMap.MemoryArea
extends java.lang.Object
implements java.lang.Comparable<MemoryMap.MemoryArea>

A memory area specified by a base address and a size


Constructor Summary
MemoryMap.MemoryArea(long baseAddress, long size)
          Construct a new MemoryArea instance
 
Method Summary
 int compareTo(MemoryMap.MemoryArea o)
           
 boolean contains(long address)
          Returns true if the provided address is within this address area
 boolean equals(java.lang.Object other)
          Returns true if provided area overlaps this area
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryMap.MemoryArea

public MemoryMap.MemoryArea(long baseAddress,
                            long size)
Construct a new MemoryArea instance

Parameters:
baseAddress - the base address
size - the size
Method Detail

contains

public boolean contains(long address)
Returns true if the provided address is within this address area

Parameters:
address - the address to check
Returns:
true if the provided address is within this address area

equals

public boolean equals(java.lang.Object other)
Returns true if provided area overlaps this area

Overrides:
equals in class java.lang.Object
Parameters:
other - the area to check
Returns:
true if provided area overlaps this area

compareTo

public int compareTo(MemoryMap.MemoryArea o)
Specified by:
compareTo in interface java.lang.Comparable<MemoryMap.MemoryArea>


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.