public FieldMapperGetterWithConverter(ContextualConverter<? super I, ? extends P > converter, ContextualGetter<? super T, ? extends I> getter) { this.converter = requireNonNull("converter", converter);; this.getter = requireNonNull("getter", getter);; }
private NamedSqlQuery(String sql, NamedParameter[] parameters) { this.sql = Asserts.requireNonNull("sql", sql); this.parameters = Asserts.requireNonNull("parameters", parameters); }
public MapperFieldMapperGetterAdapter(SourceMapper<S, P> mapper, Predicate<S> nullChecker, int valueIndex) { this.mapper = requireNonNull("jdbcMapper", mapper); this.nullChecker = requireNonNull("nullChecker", nullChecker); this.valueIndex = valueIndex; }
public MapperFieldMapper(M mapper, Setter<? super T, ? super P> propertySetter, Predicate<? super S> nullChecker, int currentValueIndex) { this.mapper = requireNonNull("jdbcMapper", mapper); this.propertySetter = requireNonNull("propertySetter", propertySetter); this.nullChecker = requireNonNull("nullChecker", nullChecker); this.currentValueIndex = currentValueIndex; }
protected FieldKey(String name, int index, K parent) { this.name = Asserts.requireNonNull("name", name); this.index = index; this.parent = parent; }
@SuppressWarnings("unchecked") public MapperKey(final K... columns) { requireNonNull("columns", columns); this.columns = columns; }
public PropertyMapping(PropertyMeta<T, P> propertyMeta, K columnKey, ColumnDefinition<K, ?> columnDefinition) { super(); this.propertyMeta = requireNonNull("propertyMeta", propertyMeta); this.columnKey = requireNonNull("propertyMeta", columnKey); this.columnDefinition = requireNonNull("propertyMeta", columnDefinition); }
public YamlCellConsumer(CellConsumer rowDelegate, CellConsumer commentDelegate, CellPreProcessor rowCellPreProcessor) { this.rowDelegate = requireNonNull( "rowDelegate", rowDelegate); this.commentDelegate = commentDelegate; this.rowCellPreProcessor = rowCellPreProcessor; }
protected FieldKey(String name, int index) { this.name = Asserts.requireNonNull("name", name); this.index = index; this.parent = null; }
public ConstantSourceFieldMapper(final ContextualGetter<? super S, ? extends P> getter, final Setter<? super T, ? super P> setter) { this.getter = requireNonNull("getter", getter); this.setter = requireNonNull("setter", setter); }
@Override public <T> ClassMeta<T> getClassMeta(Type target) { requireNonNull("target", target); ClassMeta<T> meta = (ClassMeta<T>) metaCache.get(target); if (meta == null) { meta = newClassMeta(target); requireNonNull("meta", meta); metaCache.putIfAbsent(target, meta); } return meta; }
@SuppressWarnings("unchecked") @Override public <T> ClassMeta<T> getClassMeta(Type target) { requireNonNull("target", target); ClassMeta<T> meta = (ClassMeta<T>) metaCache.get(target); if (meta == null) { meta = newClassMeta(target); requireNonNull("meta", meta); metaCache.putIfAbsent(target, meta); } return meta; }
public CD compose(ColumnDefinition<K, ?> columnDefinition) { ColumnDefinition cdi = requireNonNull("columnDefinition", columnDefinition); Object[] properties = Arrays.copyOf(cdi.properties, this.properties.length + cdi.properties.length); System.arraycopy(this.properties, 0, properties, cdi.properties.length, this.properties.length); return newColumnDefinition(properties); }
public CD compose(ColumnDefinition<K, ?> columnDefinition) { ColumnDefinition cdi = requireNonNull("columnDefinition", columnDefinition); Object[] properties = Arrays.copyOf(cdi.properties, this.properties.length + cdi.properties.length); System.arraycopy(this.properties, 0, properties, cdi.properties.length, this.properties.length); return newColumnDefinition(properties); }
public MapperConfig<K, S> columnDefinitions(ColumnDefinitionProvider<K> columnDefinitions) { requireNonNull("columnDefinitions", columnDefinitions); return new MapperConfig<K, S>( columnDefinitions, propertyNameMatcherFactory, mapperBuilderErrorHandler, failOnAsm, asmMapperNbFieldsLimit, fieldMapperErrorHandler, consumerErrorHandler, maxMethodSize, assumeInjectionModifiesValues, discriminators, rowFilter, unorderedJoin); }
public MapperConfig<K, S> propertyNameMatcherFactory(PropertyNameMatcherFactory propertyNameMatcherFactory) { return new MapperConfig<K, S>( columnDefinitions, requireNonNull("propertyNameMatcherFactory", propertyNameMatcherFactory), mapperBuilderErrorHandler, failOnAsm, asmMapperNbFieldsLimit, fieldMapperErrorHandler, consumerErrorHandler, maxMethodSize, assumeInjectionModifiesValues, discriminators, rowFilter, unorderedJoin); }
public NonNullContainer(TwoStringObjectNonNull value, TwoStringObjectNonNull value2) { this.value = Asserts.requireNonNull("", value); this.value2 = Asserts.requireNonNull("", value2); } }
public MapperConfig<K, S> mapperBuilderErrorHandler(MapperBuilderErrorHandler mapperBuilderErrorHandler) { return new MapperConfig<K, S>( columnDefinitions, propertyNameMatcherFactory, requireNonNull("mapperBuilderErrorHandler", mapperBuilderErrorHandler), failOnAsm, asmMapperNbFieldsLimit, fieldMapperErrorHandler, consumerErrorHandler, maxMethodSize, assumeInjectionModifiesValues, discriminators, rowFilter, unorderedJoin); }
public DefaultPropertyNameMatcher(String column, int from, boolean exactMatch, boolean caseSensitive) { if (from > column.length()) { throw new IndexOutOfBoundsException("Index " + from + " out of " + column.length()); } this.column = requireNonNull("property", column); this.from = from; this.exactMatch = exactMatch; this.caseSensitive = caseSensitive; this.effectiveLength = lastNonIgnorableChar(column) + 1; }
@Override public void mapTo(S source, Appendable target, MappingContext<? super S> context) throws Exception { Object o = getter.get(source); if (o != null) { Format format = formatAccessor.get(context); requireNonNull("Format in mapping context", format); cellWriter.writeValue(format.format(o), target); } } }