org.zkoss.util
Class CollectionsX.ArrayCollection

java.lang.Object
  extended by java.util.AbstractCollection
      extended by org.zkoss.util.CollectionsX.ArrayCollection
All Implemented Interfaces:
Iterable, Collection
Enclosing class:
CollectionsX

public static final class CollectionsX.ArrayCollection
extends AbstractCollection

An readonly collection on top of an array.


Constructor Summary
CollectionsX.ArrayCollection(Object[] ary)
           
 
Method Summary
 Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

CollectionsX.ArrayCollection

public CollectionsX.ArrayCollection(Object[] ary)
Method Detail

size

public final int size()
Specified by:
size in interface Collection
Specified by:
size in class AbstractCollection

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in class AbstractCollection


Copyright © 2012. All Rights Reserved.