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

org.simpleflatmapper.datastax.impl.getter.DatastaxSetGetter Maven / Gradle / Ivy

There is a newer version: 8.2.3
Show newest version
package org.simpleflatmapper.datastax.impl.getter;

import com.datastax.driver.core.GettableByIndexData;
import org.simpleflatmapper.reflect.Getter;

import java.util.Set;

public class DatastaxSetGetter implements Getter> {

    private final int index;
    private final Class type;

    public DatastaxSetGetter(int index, Class type) {
        this.index = index;
        this.type = type;
    }

    @Override
    public Set get(GettableByIndexData target) throws Exception {

        return target.getSet(index, type);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy