Class RunRangeFinder

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
com.softsynth.jmsl.util.RunRangeFinder
All Implemented Interfaces:
java.io.Serializable, 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)
Author:
Nick Didkovsky 5/18/2000, mods 1/9/2004
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    RunRangeFinder()  
  • Method Summary

    Modifier and Type Method Description
    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, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    parallelStream, stream, toArray
  • Constructor Details

    • RunRangeFinder

      public RunRangeFinder()
  • Method Details

    • scan

      public java.util.Vector scan​(RunRangeChecker test)
    • printRunRanges

      public static void printRunRanges​(java.util.Vector vectorOfRunRanges)
    • main

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