Class RunRangeFinder

  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.Vector
              extended by com.softsynth.jmsl.util.RunRangeFinder
All Implemented Interfaces:, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class RunRangeFinder
extends java.util.Vector

This class scans its Objects, applies an arbitrary boolean test to them and generates a Vector of RunRange. Useful for objects which have a boolean test indicating whether they are in some way connected to the next element in the Vector. Used to help solve finding a range of beamed notes, for example (ex Notes which have a "beamed to next" flag)

Nick Didkovsky 5/18/2000, mods 1/9/2004
See Also:
Serialized Form

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
static void printRunRanges(java.util.Vector vectorOfRunRanges)
 java.util.Vector scan(RunRangeChecker test)
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
iterator, listIterator, listIterator

Constructor Detail


public RunRangeFinder()
Method Detail


public java.util.Vector scan(RunRangeChecker test)


public static void printRunRanges(java.util.Vector vectorOfRunRanges)


public static void main(java.lang.String[] args)