public abstract class AbstractGroupBuilder extends Object implements GroupBuilder
| Constructor and Description |
|---|
AbstractGroupBuilder(String groupName) |
| Modifier and Type | Method and Description |
|---|---|
abstract BookingGroup |
createGroup(WrappedBooking booking)
Creates possible categories for this booking.
|
abstract Group.Type |
getGroupType() |
abstract boolean |
groupShouldBeCreated(WrappedBooking booking)
Asserts wether a categorizer should be created for the given booking.
|
public AbstractGroupBuilder(String groupName)
public abstract boolean groupShouldBeCreated(WrappedBooking booking)
GroupBuildergroupShouldBeCreated in interface GroupBuilderbooking - the booking to be groupedpublic abstract BookingGroup createGroup(WrappedBooking booking)
GroupBuilderThe array defines the priority of the categories. If the first entry of the array will result an valid category the others will be invalid for this booking.
createGroup in interface GroupBuilderbooking - the booking to be groupedpublic abstract Group.Type getGroupType()
getGroupType in interface GroupBuilderCopyright © 2018. All rights reserved.