com.atlassian.crucible.spi.util
Class AllIndex

java.lang.Object
  extended by com.atlassian.crucible.spi.util.AllIndex
All Implemented Interfaces:
com.atlassian.plugins.rest.common.expand.parameter.Indexes

public class AllIndex
extends java.lang.Object
implements com.atlassian.plugins.rest.common.expand.parameter.Indexes

This class returns all indexes, and is supposed to be used by the ListWrapperCallback to obtain all possible expansions.


Constructor Summary
AllIndex()
           
 
Method Summary
 boolean contains(int index, int size)
           
 java.util.SortedSet<java.lang.Integer> getIndexes(int size)
           
 int getMaxIndex(int size)
           
 int getMinIndex(int size)
           
 boolean isRange()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllIndex

public AllIndex()
Method Detail

isRange

public boolean isRange()
Specified by:
isRange in interface com.atlassian.plugins.rest.common.expand.parameter.Indexes

getMinIndex

public int getMinIndex(int size)
Specified by:
getMinIndex in interface com.atlassian.plugins.rest.common.expand.parameter.Indexes

getMaxIndex

public int getMaxIndex(int size)
Specified by:
getMaxIndex in interface com.atlassian.plugins.rest.common.expand.parameter.Indexes

contains

public boolean contains(int index,
                        int size)
Specified by:
contains in interface com.atlassian.plugins.rest.common.expand.parameter.Indexes

getIndexes

public java.util.SortedSet<java.lang.Integer> getIndexes(int size)
Specified by:
getIndexes in interface com.atlassian.plugins.rest.common.expand.parameter.Indexes