
com.spikeify.converters.SetConverterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Simple ORM for Aerospike
package com.spikeify.converters;
import com.spikeify.Converter;
import com.spikeify.ConverterFactory;
import java.lang.reflect.Field;
import java.util.Set;
@SuppressWarnings("unchecked")
public class SetConverterFactory implements ConverterFactory {
@Override
public Converter init(Field field) {
return new SetConverter<>((Class extends Set>) field.getType());
}
@Override
public boolean canConvert(Class type) {
return Set.class.isAssignableFrom(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy