org.ho.yaml.wrapper
Class ArrayWrapper
java.lang.Object
org.ho.yaml.wrapper.AbstractWrapper
org.ho.yaml.wrapper.ArrayWrapper
- All Implemented Interfaces:
- java.lang.Iterable, CollectionWrapper, ObjectWrapper
public class ArrayWrapper
- extends AbstractWrapper
- implements CollectionWrapper
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayWrapper
public ArrayWrapper(java.lang.Class type)
createPrototype
public java.lang.Object createPrototype()
- Specified by:
createPrototype
in interface ObjectWrapper
- Overrides:
createPrototype
in class AbstractWrapper
add
public void add(java.lang.Object object)
- Specified by:
add
in interface CollectionWrapper
add
public void add(int index,
java.lang.Object object)
- Description copied from interface:
CollectionWrapper
- assumes that isOrdered() returns true
- Specified by:
add
in interface CollectionWrapper
isTyped
public boolean isTyped()
- Specified by:
isTyped
in interface CollectionWrapper
componentType
public java.lang.Class componentType()
- Specified by:
componentType
in interface CollectionWrapper
size
public int size()
- Specified by:
size
in interface CollectionWrapper
isOrdered
public boolean isOrdered()
- Specified by:
isOrdered
in interface CollectionWrapper
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interface java.lang.Iterable