net.sf.javagimmicks.collections.RingCursorProvider Maven / Gradle / Ivy
package net.sf.javagimmicks.collections;
/**
* Extends {@link Iterable} by defining an additional method to create a
* {@link RingCursor} which is a special kind of iterator that defines no
* beginning or end but operations to modify or traverse the underlying data
* structure.
*
* @param
* the type of elements this {@link RingCursorProvider} works on
* @see RingCursor
*/
public interface RingCursorProvider extends Iterable
{
/**
* Returns a new {@link RingCursor} for the current data structure
*
* @return a new {@link RingCursor}
*/
public RingCursor cursor();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy