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

io.vanillabp.springboot.adapter.MultiInstance Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package io.vanillabp.springboot.adapter;

import io.vanillabp.spi.service.MultiInstanceElementResolver;

public class MultiInstance implements MultiInstanceElementResolver.MultiInstance {

    private final E element;

    private final int total;

    private final int index;

    public MultiInstance(
            final E element,
            final int total,
            final int index) {

        this.element = element;
        this.total = total;
        this.index = index;
    }

    @Override
    public E getElement() {

        return element;

    }

    @Override
    public int getTotal() {

        return total;

    }

    @Override
    public int getIndex() {

        return index;

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy