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

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended bycom.atlassian.jira.issue.customfields.option.GenericImmutableOptions
All Implemented Interfaces:
java.util.Collection, java.util.List, Options

public class GenericImmutableOptions
extends java.util.AbstractList
implements Options


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
(package private)  CustomField customField
           
(package private)  java.util.List originalList
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
GenericImmutableOptions(java.util.List originalList, CustomField customField)
           
 
Method Summary
 Option addOption(Option parent, java.lang.String value)
           
 void decrementSequence(Option option)
           
 java.lang.Object get(int index)
           
 Option getOptionById(java.lang.Long optionId)
           
 Option getOptionForValue(java.lang.String value, java.lang.Long parentOptionId)
           
 CustomField getRelatedCustomField()
           
 java.util.Collection getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void removeOption(Option option)
           
 int size()
           
 
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
 

Field Detail

customField

CustomField customField

originalList

java.util.List originalList
Constructor Detail

GenericImmutableOptions

public GenericImmutableOptions(java.util.List originalList,
                               CustomField customField)
Method Detail

get

public java.lang.Object get(int index)
Specified by:
get in interface java.util.List

size

public int size()
Specified by:
size in interface java.util.List

getRootOptions

public java.util.Collection getRootOptions()
Description copied from interface: Options
This is the same as getOptions(null)

Specified by:
getRootOptions in interface Options
Returns:

addOption

public Option addOption(Option parent,
                        java.lang.String value)
Specified by:
addOption in interface Options

removeOption

public void removeOption(Option option)
Specified by:
removeOption 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

getOptionById

public Option getOptionById(java.lang.Long optionId)
Specified by:
getOptionById in interface Options

getOptionForValue

public Option getOptionForValue(java.lang.String value,
                                java.lang.Long parentOptionId)
Specified by:
getOptionForValue in interface Options

getRelatedCustomField

public CustomField getRelatedCustomField()
Specified by:
getRelatedCustomField in interface Options


Copyright © 2002-2005 Atlassian. All Rights Reserved.