public class EnumerationWrapper
extends java.lang.Object
implements java.util.Enumeration
Method.invoke()
" throws an "IllegalAccessException
",
if accessing public methods of inner classes. Java 1.5 does not allow identifiers to be named 'enum', hence renamed the
variable.
------------------------ Apache Version 2.0 license ------------------------- Copyright (C) 2001-2006 Rony G. Flatscher Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -----------------------------------------------------------------------------
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version
Version string indicating version of this class (majorVersion*100+minorVersion
concatenated with a dot and the sorted date of last change.
|
Constructor and Description |
---|
EnumerationWrapper(java.util.Enumeration enumObject) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Implements the interface
java.util.Enumeration.hasMoreElements() . |
java.lang.Object |
nextElement()
Implements the interface
java.util.Enumeration.nextElement() . |
public static java.lang.String version
public boolean hasMoreElements()
java.util.Enumeration.hasMoreElements()
.hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
java.util.Enumeration.nextElement()
.nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- raised, if using the Enumerator interface and moving
beyond the end of the supplier object.