public interface MultiVariantObject
A class implementing this interface internally manages an array of variants and
is notified when the array need to be resized thanks to extendVariantArraySize
and reduceVariantArraySize
callbacks.
Modifier and Type | Method and Description |
---|---|
void |
allocateVariantArrayElement(int[] indexes,
int sourceIndex)
Called to allocate a variant array element.
|
void |
deleteVariantArrayElement(int index)
Called to delete a variant array element.
|
void |
extendVariantArraySize(int initVariantArraySize,
int number,
int sourceIndex)
Called to extend the variant array.
|
void |
reduceVariantArraySize(int number)
Called to reduce the variant array.
|
void extendVariantArraySize(int initVariantArraySize, int number, int sourceIndex)
initVariantArraySize
- initial variant array sizenumber
- number of element to addsourceIndex
- the variant index to use to initialize new variantsvoid reduceVariantArraySize(int number)
number
- number of element to removevoid deleteVariantArrayElement(int index)
index
- the index of the variant array to deletevoid allocateVariantArrayElement(int[] indexes, int sourceIndex)
indexes
- the indexes of the variant array to allocatesourceIndex
- the variant index to use to initialize new variantsCopyright © 2020. All rights reserved.