com.univocity.parsers.annotations
Annotation Type Group


@Retention(value=RUNTIME)
@Inherited
@Target(value={FIELD,METHOD,ANNOTATION_TYPE})
public @interface Group

Links an attribute of type Map to the the results of an entity available in a Results instance. A Linked annotation is required along this Group annotation, to configure how the values of the map should be populated.

Author:
uniVocity Software Pty Ltd - parsers@univocity.com
See Also:
Linked, Results, Result

Optional Element Summary
 Class<? extends Map> container
          Defines the concrete type of the map to be instantiated.
 Class key
          The concrete type of the keys put into this map.
 

key

public abstract Class key
The concrete type of the keys put into this map. Instances will be created from the records of the linked entity.

Returns:
the type of key to be added to the map.
Default:
java.lang.Object.class

container

public abstract Class<? extends Map> container
Defines the concrete type of the map to be instantiated. By default, if the attribute type is not a concrete map type, a HashMap will be instantiated and assigned to the attribute.

Returns:
the type of map to be created for the annotated attribute.
Default:
java.util.Map.class


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.