Package org.apache.commons.ognl
Class NumberElementsAccessor
- java.lang.Object
-
- org.apache.commons.ognl.NumberElementsAccessor
-
- All Implemented Interfaces:
ElementsAccessor
,NumericTypes
public class NumberElementsAccessor extends Object implements ElementsAccessor, NumericTypes
Implementation of ElementsAccessor that returns an iterator over integers from 0 up to the given target.
-
-
Field Summary
-
Fields inherited from interface org.apache.commons.ognl.NumericTypes
BIGDEC, BIGINT, BOOL, BYTE, CHAR, DOUBLE, FLOAT, INT, LONG, MIN_REAL_TYPE, NONNUMERIC, SHORT
-
-
Constructor Summary
Constructors Constructor Description NumberElementsAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumeration<?>
getElements(Object target)
Returns an iterator over the elements of the given target object.
-
-
-
Method Detail
-
getElements
public Enumeration<?> getElements(Object target)
Returns an iterator over the elements of the given target object.- Specified by:
getElements
in interfaceElementsAccessor
- Parameters:
target
- the object to get the elements of- Returns:
- an iterator over the elements of the given object
-
-