Code example for Collection

Methods: getComparatorgetType

0
        } 
    } 
 
    private void addMapper(CommonCollectionMapperData commonCollectionMapperData, MiddleComponentData elementComponentData,
                           MiddleComponentData indexComponentData) {
        Type type = propertyValue.getType();
        if (type instanceof SortedSetType) {
			currentMapper.addComposite(propertyAuditingData.getPropertyData(),
					new SortedSetCollectionMapper(commonCollectionMapperData,
							TreeSet.class, SortedSetProxy.class, elementComponentData, propertyValue.getComparator()));
		} else if (type instanceof SetType) {
			currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new BasicCollectionMapper<Set>(commonCollectionMapperData,
                    HashSet.class, SetProxy.class, elementComponentData));
        } else if (type instanceof SortedMapType) {
            // Indexed collection, so <code>indexComponentData</code> is not null. 
			currentMapper.addComposite(propertyAuditingData.getPropertyData(),
					new SortedMapCollectionMapper(commonCollectionMapperData,
							TreeMap.class, SortedMapProxy.class, elementComponentData, indexComponentData, propertyValue.getComparator()));
        } else if (type instanceof MapType) {
            // Indexed collection, so <code>indexComponentData</code> is not null. 
            currentMapper.addComposite(propertyAuditingData.getPropertyData(),
                    new MapCollectionMapper<Map>(commonCollectionMapperData,
                    HashMap.class, MapProxy.class, elementComponentData, indexComponentData));
Connect your IDE to all the code out there  Get Codota for Java