All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.restup.mapping.fields.BasicIterableField Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.mapping.fields;

import com.github.restup.mapping.fields.composition.CaseSensitivity;
import com.github.restup.mapping.fields.composition.Identifier;
import com.github.restup.mapping.fields.composition.Immutability;
import com.github.restup.mapping.fields.composition.Relation;

/**
 * {@link MappedField} representing an {@link Iterable} type, capturing detail
 * of the generic type of items
 */
class BasicIterableField extends BasicMappedField implements IterableField {

	private final Class genericType;

	BasicIterableField(Class type, String beanName, String apiName, String persistedName, Identifier identifier,
			boolean collection, boolean apiProperty, boolean transientField, CaseSensitivity caseSensitivity,
			Relation relationship, Immutability immutability, String[] parameterNames, ReadableField reader,
			WritableField writer, Class genericType) {
		super(type, beanName, apiName, persistedName, identifier, collection, apiProperty, transientField,
				caseSensitivity, relationship, immutability, parameterNames, reader, writer);
		this.genericType = genericType;
	}

	@Override
    public Class getGenericType() {
		return genericType;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy