jlibs.core.graph.sequences
Class EmptySequence<E>

java.lang.Object
  extended by jlibs.core.graph.sequences.EmptySequence<E>
All Implemented Interfaces:
Sequence<E>

public final class EmptySequence<E>
extends Object
implements Sequence<E>

Author:
Santhosh Kumar T

Method Summary
 EmptySequence<E> copy()
           
 E current()
           
static
<T> EmptySequence<T>
getInstance()
           
 boolean hasNext()
           
 int index()
           
 int length()
           
 E next()
           
 E next(int count)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <T> EmptySequence<T> getInstance()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Sequence<E>

next

public E next()
Specified by:
next in interface Sequence<E>

next

public E next(int count)
Specified by:
next in interface Sequence<E>

index

public int index()
Specified by:
index in interface Sequence<E>

current

public E current()
Specified by:
current in interface Sequence<E>

length

public int length()
Specified by:
length in interface Sequence<E>

reset

public void reset()
Specified by:
reset in interface Sequence<E>

copy

public EmptySequence<E> copy()
Specified by:
copy in interface Sequence<E>


Copyright © 2018. All rights reserved.