com.atlassian.crucible.spi.util
Class AllIndex
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllIndex
public AllIndex()
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