Package io.vanillabp.springboot.adapter
Class MultiInstance<E>
- java.lang.Object
-
- io.vanillabp.springboot.adapter.MultiInstance<E>
-
- All Implemented Interfaces:
io.vanillabp.spi.service.MultiInstanceElementResolver.MultiInstance<E>
public class MultiInstance<E> extends java.lang.Object implements io.vanillabp.spi.service.MultiInstanceElementResolver.MultiInstance<E>
-
-
Constructor Summary
Constructors Constructor Description MultiInstance(E element, int total, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EgetElement()intgetIndex()intgetTotal()
-
-
-
Constructor Detail
-
MultiInstance
public MultiInstance(E element, int total, int index)
-
-
Method Detail
-
getElement
public E getElement()
- Specified by:
getElementin interfaceio.vanillabp.spi.service.MultiInstanceElementResolver.MultiInstance<E>
-
getTotal
public int getTotal()
- Specified by:
getTotalin interfaceio.vanillabp.spi.service.MultiInstanceElementResolver.MultiInstance<E>
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceio.vanillabp.spi.service.MultiInstanceElementResolver.MultiInstance<E>
-
-