Code example for Annotation

Methods: annotationType

0
	private boolean isCollection;
 
	public RiakMappedField(Field field, Annotation annot) {
		this.field = field;
		this.annotation = annot;
		this.annotationClass = annot.annotationType();
		init(); 
	} 
 
	private void init() { 
		Class<?> fieldType = this.field.getType();
 
		if (Collection.class.isAssignableFrom(fieldType)) {
			// this.actualType = fieldType; 
			this.isCollection = true;
		} else if (fieldType.isArray()) {
			// this.actualType = fieldType; 
			this.isArray = true;
		} else if (Map.class.isAssignableFrom(fieldType)) {
			// this.actualType = fieldType; 
			this.isMap = true;