swarm.collections
Interface PermutedIndex


public abstract interface PermutedIndex
extends IndexS, Index

General PermutedIndex class. . PermutedIndex class may be used for randomized traversals of a collection. Methods implemented offer the same functionality as Index class does, except that traversal is randomized.


Method Summary
 Object findNext(Object anObject)
           
 Object findPrev(Object anObject)
           
 Object get()
           
 SymbolImpl getLoc()
           
 int getOffset()
           
 Object next()
           
 Object prev()
           
 Object reshuffle()
           
 void setLoc(SymbolImpl locSymbol)
           
 Object setOffset(int offset)
           
 
Methods inherited from interface swarm.collections.Index
compare, getCollection, put, remove
 
Methods inherited from interface swarm.defobj.DefinedObject
describe, describeID, getDisplayName, getTypeName, getZone, perform, perform$with, perform$with$with, perform$with$with$with, respondsTo, setDisplayName, xfprint, xfprintid, xprint, xprintid
 
Methods inherited from interface swarm.defobj.Drop
drop
 

Method Detail

reshuffle

public Object reshuffle()

next

public Object next()
Specified by:
next in interface Index

prev

public Object prev()
Specified by:
prev in interface Index

findNext

public Object findNext(Object anObject)
Specified by:
findNext in interface Index

findPrev

public Object findPrev(Object anObject)
Specified by:
findPrev in interface Index

get

public Object get()
Specified by:
get in interface Index

getLoc

public SymbolImpl getLoc()
Specified by:
getLoc in interface Index

setLoc

public void setLoc(SymbolImpl locSymbol)
Specified by:
setLoc in interface Index

getOffset

public int getOffset()
Specified by:
getOffset in interface Index

setOffset

public Object setOffset(int offset)
Specified by:
setOffset in interface Index