/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(String... consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(Set<String> consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Get the events consumed by the input cell. * * @param userEvents the events consumed by the subclass * @return the events */ private static Set<String> getConsumedEventsImpl(String... consumedEvents) { Set<String> userEvents = new HashSet<String>(); if (consumedEvents != null) { for (String event : consumedEvents) { userEvents.add(event); } } return getConsumedEventsImpl(userEvents); }
/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(Set<String> consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(Set<String> consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(String... consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Construct a new {@link AbstractInputCell} with the specified consumed * events. * * @param consumedEvents the events that this cell consumes */ public AbstractInputCell(String... consumedEvents) { super(getConsumedEventsImpl(consumedEvents)); }
/** * Get the events consumed by the input cell. * * @param userEvents the events consumed by the subclass * @return the events */ private static Set<String> getConsumedEventsImpl(String... consumedEvents) { Set<String> userEvents = new HashSet<String>(); if (consumedEvents != null) { for (String event : consumedEvents) { userEvents.add(event); } } return getConsumedEventsImpl(userEvents); }
/** * Get the events consumed by the input cell. * * @param userEvents the events consumed by the subclass * @return the events */ private static Set<String> getConsumedEventsImpl(String... consumedEvents) { Set<String> userEvents = new HashSet<String>(); if (consumedEvents != null) { for (String event : consumedEvents) { userEvents.add(event); } } return getConsumedEventsImpl(userEvents); }