com.atlassian.jira.issue.customfields.option
Class GenericImmutableOptions
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.atlassian.jira.issue.customfields.option.GenericImmutableOptions
- All Implemented Interfaces:
- Options, Iterable, Collection, List
public class GenericImmutableOptions
- extends AbstractList
- implements Options
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
GenericImmutableOptions
public GenericImmutableOptions(List originalList,
FieldConfig fieldConfig)
get
public Object get(int index)
- Specified by:
get
in interface List
- Specified by:
get
in class AbstractList
size
public int size()
- Specified by:
size
in interface Collection
- Specified by:
size
in interface List
- Specified by:
size
in class AbstractCollection
getRootOptions
public List getRootOptions()
- Description copied from interface:
Options
- This is the same as
getOptions(null)
- Specified by:
getRootOptions
in interface Options
addOption
public Option addOption(Option parent,
String value)
- Specified by:
addOption
in interface Options
removeOption
public void removeOption(Option option)
- Specified by:
removeOption
in interface Options
setValue
public void setValue(Option option,
String value)
- Specified by:
setValue
in interface Options
disableOption
public void disableOption(Option option)
- Specified by:
disableOption
in interface Options
enableOption
public void enableOption(Option option)
- Specified by:
enableOption
in interface Options
moveToStartSequence
public void moveToStartSequence(Option option)
- Specified by:
moveToStartSequence
in interface Options
incrementSequence
public void incrementSequence(Option option)
- Specified by:
incrementSequence
in interface Options
decrementSequence
public void decrementSequence(Option option)
- Specified by:
decrementSequence
in interface Options
moveToLastSequence
public void moveToLastSequence(Option option)
- Specified by:
moveToLastSequence
in interface Options
getOptionById
public Option getOptionById(Long optionId)
- Specified by:
getOptionById
in interface Options
getOptionForValue
public Option getOptionForValue(String value,
Long parentOptionId)
- Specified by:
getOptionForValue
in interface Options
getRelatedFieldConfig
public FieldConfig getRelatedFieldConfig()
- Specified by:
getRelatedFieldConfig
in interface Options
sortOptionsByValue
public void sortOptionsByValue(Option parentOption)
- Specified by:
sortOptionsByValue
in interface Options
moveOptionToPosition
public void moveOptionToPosition(Map positionsToOptions)
- Specified by:
moveOptionToPosition
in interface Options
Copyright © 2002-2011 Atlassian. All Rights Reserved.