io.ultreia.java4all.jaxx.widgets.combobox.JaxxComboBoxModelJavaBeanDefinition Maven / Gradle / Ivy
package io.ultreia.java4all.jaxx.widgets.combobox;
import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.ultreia.java4all.bean.AbstractJavaBeanComparatorBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanInstanceBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanPredicate;
import io.ultreia.java4all.bean.AbstractJavaBeanStream;
import io.ultreia.java4all.bean.definition.AbstractJavaBeanDefinition;
import io.ultreia.java4all.bean.definition.JavaBeanDefinition;
import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.Function;
import javax.annotation.Generated;
@AutoService(JavaBeanDefinition.class)
@Generated(value = "io.ultreia.java4all.bean.spi.GenerateJavaBeanDefinitionProcessor", date = "Mon Jul 06 12:41:09 CEST 2020")
public final class JaxxComboBoxModelJavaBeanDefinition extends AbstractJavaBeanDefinition {
@Override
protected final ImmutableSet> loadAcceptedTypes() {
return ImmutableSet.>builder()
.add(JaxxComboBoxModel.class)
.build();
}
@Override
protected final ImmutableMap> loadTypes() {
return ImmutableMap.>builder()
.put("bean", java.lang.Object.class)
.put("config", io.ultreia.java4all.jaxx.widgets.combobox.JaxxComboBoxConfig.class)
.put("data", java.util.List.class)
.put("empty", boolean.class)
.put("index", int.class)
.put("reverseSort", java.lang.Boolean.class)
.put("selectedItem", java.lang.Object.class)
.build();
}
@SuppressWarnings("unchecked")
@Override
protected final ImmutableMap> loadGetters() {
return (ImmutableMap) ImmutableMap., ?>>builder()
.put("bean", JaxxComboBoxModel::getBean)
.put("config", JaxxComboBoxModel::getConfig)
.put("data", JaxxComboBoxModel::getData)
.put("empty", JaxxComboBoxModel::isEmpty)
.put("index", JaxxComboBoxModel::getIndex)
.put("reverseSort", JaxxComboBoxModel::getReverseSort)
.put("selectedItem", JaxxComboBoxModel::getSelectedItem)
.build();
}
@SuppressWarnings("unchecked")
@Override
protected final ImmutableMap> loadSetters() {
return (ImmutableMap) ImmutableMap., ?>>builder()
.put("bean", (e, v) -> e.setBean((java.lang.Object) v))
.put("data", (e, v) -> e.setData((java.util.List< O >) v))
.put("index", (e, v) -> e.setIndex((int) v))
.put("reverseSort", (e, v) -> e.setReverseSort((java.lang.Boolean) v))
.put("selectedItem", (e, v) -> e.setSelectedItem((O) v))
.build();
}
public static JaxxComboBoxModelPredicate predicate() {
return new JaxxComboBoxModelPredicate<>();
}
public static JaxxComboBoxModelStream stream(Collection> elements) {
return new JaxxComboBoxModelStream<>(elements);
}
public static JaxxComboBoxModelComparatorBuilder comparator() {
return new JaxxComboBoxModelComparatorBuilder<>();
}
public static JaxxComboBoxModelInstanceBuilder instance() {
return new JaxxComboBoxModelInstanceBuilder<>();
}
@Override
public JaxxComboBoxModelPredicate predicateBuilder() {
return new JaxxComboBoxModelPredicate(this);
}
@Override
public JaxxComboBoxModelComparatorBuilder comparatorBuilder() {
return new JaxxComboBoxModelComparatorBuilder(this);
}
@Override
public JaxxComboBoxModelInstanceBuilder instanceBuilder() {
return new JaxxComboBoxModelInstanceBuilder(this);
}
public static final class JaxxComboBoxModelPredicate extends AbstractJavaBeanPredicate, JaxxComboBoxModelPredicate> {
protected JaxxComboBoxModelPredicate() {
super(JaxxComboBoxModelJavaBeanDefinition.class);
}
protected JaxxComboBoxModelPredicate(JaxxComboBoxModelJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public ObjectQuery, java.lang.Object, JaxxComboBoxModelPredicate, ?> whereBean() {
return where("bean");
}
public ObjectQuery, io.ultreia.java4all.jaxx.widgets.combobox.JaxxComboBoxConfig, JaxxComboBoxModelPredicate, ?> whereConfig() {
return where("config");
}
public ObjectQuery, java.util.List, JaxxComboBoxModelPredicate, ?> whereData() {
return where("data");
}
public PrimitiveBooleanQuery, JaxxComboBoxModelPredicate, ?> whereEmpty() {
return wherePrimitiveBoolean("empty");
}
public PrimitiveObjectQuery, java.lang.Integer, JaxxComboBoxModelPredicate, ?> whereIndex() {
return wherePrimitive("index");
}
public ObjectBooleanQuery, JaxxComboBoxModelPredicate, ?> whereReverseSort() {
return whereBoolean("reverseSort");
}
public ObjectQuery, java.lang.Object, JaxxComboBoxModelPredicate, ?> whereSelectedItem() {
return where("selectedItem");
}
}
public static final class JaxxComboBoxModelStream extends AbstractJavaBeanStream, JaxxComboBoxModelStream> {
protected JaxxComboBoxModelStream(Collection> elements) {
super(JaxxComboBoxModelJavaBeanDefinition.class, elements);
}
protected JaxxComboBoxModelStream(JaxxComboBoxModelJavaBeanDefinition javaBeanDefinition, Collection> elements) {
super(javaBeanDefinition, elements);
}
public StreamObjectQuery, java.lang.Object, JaxxComboBoxModelStream, ?> whereBean() {
return where("bean");
}
public StreamObjectQuery, io.ultreia.java4all.jaxx.widgets.combobox.JaxxComboBoxConfig, JaxxComboBoxModelStream, ?> whereConfig() {
return where("config");
}
public StreamObjectQuery, java.util.List, JaxxComboBoxModelStream, ?> whereData() {
return where("data");
}
public StreamPrimitiveBooleanQuery, JaxxComboBoxModelStream, ?> whereEmpty() {
return wherePrimitiveBoolean("empty");
}
public StreamPrimitiveObjectQuery, java.lang.Integer, JaxxComboBoxModelStream, ?> whereIndex() {
return wherePrimitive("index");
}
public StreamObjectBooleanQuery, JaxxComboBoxModelStream, ?> whereReverseSort() {
return whereBoolean("reverseSort");
}
public StreamObjectQuery, java.lang.Object, JaxxComboBoxModelStream, ?> whereSelectedItem() {
return where("selectedItem");
}
}
public static final class JaxxComboBoxModelComparatorBuilder extends AbstractJavaBeanComparatorBuilder, JaxxComboBoxModelComparatorBuilder> {
protected JaxxComboBoxModelComparatorBuilder() {
super(JaxxComboBoxModelJavaBeanDefinition.class);
}
protected JaxxComboBoxModelComparatorBuilder(JaxxComboBoxModelJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public Query, java.lang.Boolean, JaxxComboBoxModelComparatorBuilder> whereEmpty() {
return on("empty");
}
public Query, java.lang.Integer, JaxxComboBoxModelComparatorBuilder> whereIndex() {
return on("index");
}
public Query, java.lang.Boolean, JaxxComboBoxModelComparatorBuilder> whereReverseSort() {
return on("reverseSort");
}
}
public static final class JaxxComboBoxModelInstanceBuilder extends AbstractJavaBeanInstanceBuilder, JaxxComboBoxModelInstanceBuilder> {
protected JaxxComboBoxModelInstanceBuilder() {
super(JaxxComboBoxModelJavaBeanDefinition.class);
}
protected JaxxComboBoxModelInstanceBuilder(JaxxComboBoxModelJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public JaxxComboBoxModelInstanceBuilder bean(java.lang.Object value) {
return set("bean", value);
}
public JaxxComboBoxModelInstanceBuilder data(java.util.List value) {
return set("data", value);
}
public JaxxComboBoxModelInstanceBuilder index(java.lang.Integer value) {
return set("index", value);
}
public JaxxComboBoxModelInstanceBuilder reverseSort(java.lang.Boolean value) {
return set("reverseSort", value);
}
public JaxxComboBoxModelInstanceBuilder selectedItem(java.lang.Object value) {
return set("selectedItem", value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy