Build 1.0_r1(from source)

java.security
Class AllPermissionCollection.SingletonEnumeration<E>

java.lang.Object
  extended by java.security.AllPermissionCollection.SingletonEnumeration<E>
All Implemented Interfaces:
Enumeration<E>
Enclosing class:
AllPermissionCollection

static final class AllPermissionCollection.SingletonEnumeration<E>
extends Object
implements Enumeration<E>

An auxiliary implementation for enumerating a single object.


Constructor Summary
AllPermissionCollection.SingletonEnumeration(E single)
          Constructor taking the single element.
 
Method Summary
 boolean hasMoreElements()
          Returns true if the element is not enumerated yet.
 E nextElement()
          Returns the element and clears internal reference to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllPermissionCollection.SingletonEnumeration

public AllPermissionCollection.SingletonEnumeration(E single)
Constructor taking the single element.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns true if the element is not enumerated yet.

Specified by:
hasMoreElements in interface Enumeration<E>
Returns:
true if there are more elements, false otherwise
See Also:
Enumeration.nextElement()

nextElement

public E nextElement()
Returns the element and clears internal reference to it.

Specified by:
nextElement in interface Enumeration<E>
Returns:
the next element in this Enumeration
See Also:
Enumeration.hasMoreElements()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature