/** * Associate the specified columnProperties to the property matching the predicate. * @param column the column name * @param properties the properties * @return the current factory */ public final MF addColumnProperty(String column, Object... properties) { for(Object property : properties) { columnDefinitions.addColumnProperty(column, property); } return (MF) this; }
/** * Associate the specified columnProperties to the property matching the predicate. * @param predicate the property predicate * @param properties the properties * @return the current factory */ public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) { for(Object property : properties) { columnDefinitions.addColumnProperty(predicate, property); } return (MF) this; }
/** * Associate the specified columnProperties to the property matching the predicate. * @param predicate the property predicate * @param properties the properties * @return the current factory */ public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) { for(Object property : properties) { columnDefinitions.addColumnProperty(predicate, property); } return (MF) this; }
/** * Associate the specified columnProperties to the property matching the predicate. * @param predicate the property predicate * @param propertyFactory the properties * @return the current factory */ public final MF addColumnProperty(Predicate<? super K> predicate, UnaryFactory<K, Object> propertyFactory) { columnDefinitions.addColumnProperty(predicate, propertyFactory); return (MF) this; }
/** * Associate the specified columnProperties to the property matching the predicate. * @param column the column name * @param properties the properties * @return the current factory */ public final MF addColumnProperty(String column, Object... properties) { for(Object property : properties) { columnDefinitions.addColumnProperty(column, property); } return (MF) this; }
/** * Associate the specified columnProperties to the property matching the predicate. * @param predicate the property predicate * @param propertyFactory the properties * @return the current factory */ public final MF addColumnProperty(Predicate<? super K> predicate, UnaryFactory<K, Object> propertyFactory) { columnDefinitions.addColumnProperty(predicate, propertyFactory); return (MF) this; }
public void addColumnProperty(Predicate<? super K> predicate, Object property) { addColumnProperty(predicate, newFactory(property)); }
public void addColumnProperty(Predicate<? super K> predicate, Object property) { addColumnProperty(predicate, newFactory(property)); }
public void addColumnDefinition(Predicate<? super K> predicate, ColumnDefinition<K, ?> definition) { for(Object prop : definition.properties()) { addColumnProperty(predicate, newFactory(prop)); } } public void addColumnDefinition(String name, ColumnDefinition<K, ?> definition) {
public void addColumnDefinition(Predicate<? super K> predicate, ColumnDefinition<K, ?> definition) { for(Object prop : definition.properties()) { addColumnProperty(predicate, newFactory(prop)); } } public void addColumnDefinition(String name, ColumnDefinition<K, ?> definition) {
private static ColumnDefinitionProvider<CsvColumnKey> addDefaultDateFormat(AbstractColumnDefinitionProvider<CsvColumnKey> columnDefinitionProvider, String defaultDateFormat) { columnDefinitionProvider.addColumnProperty(ConstantPredicate.truePredicate(), new DefaultDateFormatProperty(defaultDateFormat)); return columnDefinitionProvider; }
private static ColumnDefinitionProvider<CsvColumnKey> addDefaultDateFormat(AbstractColumnDefinitionProvider<CsvColumnKey> columnDefinitionProvider, String defaultDateFormat) { columnDefinitionProvider.addColumnProperty(ConstantPredicate.truePredicate(), new DefaultDateFormatProperty(defaultDateFormat)); return columnDefinitionProvider; }
public void addColumnProperty(String name, Object property) { addColumnProperty(newPredicate(name), newFactory(property)); }
public void addColumnProperty(String name, Object property) { addColumnProperty(newPredicate(name), newFactory(property)); }
public void addColumnDefinition(String name, ColumnDefinition<K, ?> definition) { Predicate<? super K> predicate = newPredicate(name); for(Object prop : definition.properties()) { addColumnProperty(predicate, newFactory(prop)); } }
@Override public AbstractColumnDefinitionProvider<CsvColumnKey> enrichColumnDefinitions(AbstractColumnDefinitionProvider<CsvColumnKey> columnDefinitions) { AbstractColumnDefinitionProvider<CsvColumnKey> copy = columnDefinitions.copy(); copy.addColumnProperty(ConstantPredicate.truePredicate(), new DefaultDateFormatProperty(defaultDateFormat)); return copy; }
@Override public AbstractColumnDefinitionProvider<CsvColumnKey> enrichColumnDefinitions(AbstractColumnDefinitionProvider<CsvColumnKey> columnDefinitions) { AbstractColumnDefinitionProvider<CsvColumnKey> copy = columnDefinitions.copy(); copy.addColumnProperty(ConstantPredicate.truePredicate(), new DefaultDateFormatProperty(defaultDateFormat)); return copy; }
public void addColumnDefinition(String name, ColumnDefinition<K, ?> definition) { Predicate<? super K> predicate = newPredicate(name); for(Object prop : definition.properties()) { addColumnProperty(predicate, newFactory(prop)); } }