コード例 #1
0
 /**
  * Associate the specified columnProperties to the column matching the predicate.
  *
  * @param predicate the column predicate
  * @param properties the properties
  * @return the current factory
  */
 public final MF addColumnProperty(Predicate<? super K> predicate, ColumnProperty... properties) {
   for (ColumnProperty property : properties) {
     columnDefinitions.addColumnProperty(
         predicate, new ConstantUnaryFactory<K, ColumnProperty>(property));
   }
   return (MF) this;
 }
コード例 #2
0
 /**
  * Associate the specified columnProperties to the column matching the predicate.
  *
  * @param name the column predicate
  * @param properties the properties
  * @return the current factory
  */
 public final MF addColumnProperty(String name, ColumnProperty... properties) {
   for (ColumnProperty property : properties) {
     columnDefinitions.addColumnProperty(
         new CaseInsensitiveFieldKeyNamePredicate(name),
         new ConstantUnaryFactory<K, ColumnProperty>(property));
   }
   return (MF) this;
 }
コード例 #3
0
 /**
  * Associate the specified columnProperties to the column matching the predicate.
  *
  * @param predicate the column predicate
  * @param propertyFactory the properties
  * @return the current factory
  */
 public final MF addColumnProperty(
     Predicate<? super K> predicate, UnaryFactory<K, ColumnProperty> propertyFactory) {
   columnDefinitions.addColumnProperty(predicate, propertyFactory);
   return (MF) this;
 }