/** * This will get the indices of the selected options - the 'I' key. * <p> * This is only needed if a choice field allows multiple selections and * two different items have the same export value or more than one values * is selected. * </p> * <p>The indices are zero-based</p> * * @return List containing the indices of all selected options. */ public List<Integer> getSelectedOptionsIndex() { COSBase value = getCOSObject().getDictionaryObject(COSName.I); if (value instanceof COSArray) { return COSArrayList.convertIntegerCOSArrayToList((COSArray) value); } return Collections.emptyList(); }
/** * This will get the indices of the selected options - the 'I' key. * <p> * This is only needed if a choice field allows multiple selections and * two different items have the same export value or more than one values * is selected. * </p> * <p>The indices are zero-based</p> * * @return List containing the indices of all selected options. */ public List<Integer> getSelectedOptionsIndex() { COSBase value = getCOSObject().getDictionaryObject(COSName.I); if (value != null) { return COSArrayList.convertIntegerCOSArrayToList((COSArray) value); } return Collections.emptyList(); }
/** * This will get the indices of the selected options - the 'I' key. * <p> * This is only needed if a choice field allows multiple selections and * two different items have the same export value or more than one values * is selected. * </p> * <p>The indices are zero-based</p> * * @return List containing the indices of all selected options. */ public List<Integer> getSelectedOptionsIndex() { COSBase value = getCOSObject().getDictionaryObject(COSName.I); if (value != null) { return COSArrayList.convertIntegerCOSArrayToList((COSArray) value); } return Collections.emptyList(); }