com.atlassian.user.search.page
Class MockNamingEnumeration<T>

java.lang.Object
  extended by com.atlassian.user.search.page.MockNamingEnumeration<T>
All Implemented Interfaces:
Enumeration<T>, NamingEnumeration<T>

public class MockNamingEnumeration<T>
extends Object
implements NamingEnumeration<T>


Constructor Summary
MockNamingEnumeration(Collection<? extends T> collection)
           
MockNamingEnumeration(Iterator<T> iterator)
           
 
Method Summary
 void close()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 T next()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockNamingEnumeration

public MockNamingEnumeration(Collection<? extends T> collection)

MockNamingEnumeration

public MockNamingEnumeration(Iterator<T> iterator)
Method Detail

close

public void close()
           throws NamingException
Specified by:
close in interface NamingEnumeration<T>
Throws:
NamingException

hasMore

public boolean hasMore()
                throws NamingException
Specified by:
hasMore in interface NamingEnumeration<T>
Throws:
NamingException

next

public T next()
       throws NamingException
Specified by:
next in interface NamingEnumeration<T>
Throws:
NamingException

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

public T nextElement()
Specified by:
nextElement in interface Enumeration<T>


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.