|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Licenses
An object implementing this interface represents a collection of licenses and
should be obtained from the Program object's getLicenses()
method.
The collection contains only those entries that were present when
getLicenses()
was called.
Since the collection is iterable and the contents are immutable the easiest way to use the collection is in a for loop:
for (License license : program.getLicenses()) { process the license; }
License
Method Summary | |
---|---|
License |
get(int index)
Get the specified License object by its index in the collection. |
int |
getCount()
Get the number of licenses in the list. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
License get(int index)
index
- The zero-based index of the object in the collection.
License
objectgetCount()
,
Iterable.iterator()
int getCount()
for (License license : program.getLicenses()) { process the license; }
get(int)
,
Iterable.iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |