com.atlassian.jira.issue.customfields.option
Class GenericImmutableOptions

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by com.atlassian.jira.issue.customfields.option.GenericImmutableOptions
All Implemented Interfaces:
Options, Iterable, Collection, List

public class GenericImmutableOptions
extends AbstractList
implements Options


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GenericImmutableOptions(List originalList, FieldConfig fieldConfig)
           
 
Method Summary
 Option addOption(Option parent, String value)
           
 void decrementSequence(Option option)
           
 Object get(int index)
           
 Option getOptionById(Long optionId)
           
 Option getOptionForValue(String value, Long parentOptionId)
           
 FieldConfig getRelatedFieldConfig()
           
 List getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void moveOptionToPosition(Map positionsToOptions)
           
 void moveToLastSequence(Option option)
           
 void moveToStartSequence(Option option)
           
 void removeOption(Option option)
           
 int size()
           
 void sortOptionsByValue(Option parentOption)
           
 
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 class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

GenericImmutableOptions

public GenericImmutableOptions(List originalList,
                               FieldConfig fieldConfig)
Method Detail

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

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-2008 Atlassian. All Rights Reserved.