org.onebusaway.transit_data_federation.impl.blocks
Class BlockLibrary

java.lang.Object
  extended by org.onebusaway.transit_data_federation.impl.blocks.BlockLibrary

public class BlockLibrary
extends Object


Constructor Summary
BlockLibrary()
           
 
Method Summary
static
<T> List<List<T>>
createStrictlyOrderedGroups(List<T> elements, Comparator<T> looseOrder, Comparator<T> strictOrder)
           
static
<T> List<T>
getBestList(List<List<T>> lists, T element, Comparator<T> strictComparator)
           
static boolean isFrequencyBased(BlockEntry blockEntry)
          Private Methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockLibrary

public BlockLibrary()
Method Detail

isFrequencyBased

public static boolean isFrequencyBased(BlockEntry blockEntry)
Private Methods


createStrictlyOrderedGroups

public static <T> List<List<T>> createStrictlyOrderedGroups(List<T> elements,
                                                            Comparator<T> looseOrder,
                                                            Comparator<T> strictOrder)

getBestList

public static <T> List<T> getBestList(List<List<T>> lists,
                                      T element,
                                      Comparator<T> strictComparator)


Copyright © 2011 OneBusAway. All Rights Reserved.