Top Fields Constructors Methods
impl.com.calendarfx.view.util

public final Class TimeBoundsResolver

extends Object
Class Inheritance
Annotations
@SuppressWarnings:javadoc
Imports
com.calendarfx.view.EntryViewBase, java.util.ArrayList, .Comparator, .List

Field Summary

Modifier and TypeField and Description
private static Comparator<EntryViewBase<?>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Comparator<EntryViewBase<?>>
getAdditionalComparator()

The resolver always sorts entries based on their time bounds but when entries have the same bounds the application might want to sort them based on additional criteria.

public static <T extends EntryViewBase<T extends DateControl>> List<Placement>
resolve(List<T> entryViews)

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

additionalComparatorback to summary
private static Comparator<EntryViewBase<?>> additionalComparator

Constructor Detail

TimeBoundsResolverback to summary
public TimeBoundsResolver()

Method Detail

getAdditionalComparatorback to summary
public static Comparator<EntryViewBase<?>> getAdditionalComparator()

The resolver always sorts entries based on their time bounds but when entries have the same bounds the application might want to sort them based on additional criteria. This can be implemented this way.

resolveback to summary
public static <T extends EntryViewBase<T extends DateControl>> List<Placement> resolve(List<T> entryViews)
setAdditionalComparatorback to summary
public static void setAdditionalComparator(Comparator<EntryViewBase<?>> additionalComparator)