org.omnaest.utils.propertyfile.content.index
Class IndexManager

java.lang.Object
  extended by org.omnaest.utils.propertyfile.content.index.IndexManager

public class IndexManager
extends Object


Field Summary
protected  List<Index> indexList
           
 
Constructor Summary
IndexManager()
           
 
Method Summary
 void clear()
           
 Index createNewAppendedIndex()
          Creates a new Index instance which is appended to the current list of Index elements.
 Index createNewPreviousIndex(Index currentIndex)
          Creates a new Index element before the given current Index.
 List<Index> getIndexList()
           
 Index getNextIndex(Index currentIndex)
          Returns the Index which follows the given Index
 Index getPreviousIndex(Index currentIndex)
          Returns the Index is comes before the given Index.
 void insertIndex(int indexPosition, Index index)
           
 void removeIndex(Index index)
           
 int resolveIndexPosition(Index index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexList

protected List<Index> indexList
Constructor Detail

IndexManager

public IndexManager()
Method Detail

getIndexList

public List<Index> getIndexList()

getPreviousIndex

public Index getPreviousIndex(Index currentIndex)
Returns the Index is comes before the given Index.

Parameters:
currentIndex -
Returns:

removeIndex

public void removeIndex(Index index)

insertIndex

public void insertIndex(int indexPosition,
                        Index index)

resolveIndexPosition

public int resolveIndexPosition(Index index)

getNextIndex

public Index getNextIndex(Index currentIndex)
Returns the Index which follows the given Index

Parameters:
currentIndex -
Returns:

createNewAppendedIndex

public Index createNewAppendedIndex()
Creates a new Index instance which is appended to the current list of Index elements.

Returns:

createNewPreviousIndex

public Index createNewPreviousIndex(Index currentIndex)
Creates a new Index element before the given current Index.

Parameters:
currentIndex -
Returns:

clear

public void clear()


Copyright © 2013. All Rights Reserved.