|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.plist.NSObject
net.sf.plist.NSArray
public class NSArray
Ordered list of NSObject
s.
In this implementation, a List
is used to represent the NSArray
.
List
Constructor Summary | |
---|---|
NSArray(List<NSObject> theList)
Constructor. |
Method Summary | |
---|---|
NSObject[] |
array()
Get an array containing all values of this object. |
NSObject |
get(int index)
Get NSObject corresponding to index from this object. |
List<NSObject> |
getValue()
Get the unmodifiable value of this object. |
List<NSObject> |
list()
Get an unmodifiable List containing all values of this object. |
Methods inherited from class net.sf.plist.NSObject |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NSArray(List<NSObject> theList)
theList
- the contents of new objectMethod Detail |
---|
public NSObject get(int index)
NSObject
corresponding to index from this object.
index
- index of object to retrievepublic List<NSObject> list()
List
containing all values of this object.
List
public NSObject[] array()
Get an array containing all values of this object. Changes made in the array will not affect this object.
When iterating through all items in this object,
the list()
method is a better choice for performance reasons.
public List<NSObject> getValue()
getValue
in class NSObject
list()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |