|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.netcdf.DimensionDictionary
DimensionDictionary is package private implementation of DimensionSet.
| Constructor Summary | |
(package private) |
DimensionDictionary()
|
(package private) |
DimensionDictionary(DimensionSet ss)
|
(package private) |
DimensionDictionary(ProtoVariable[] varArray)
|
| Method Summary | |
boolean |
contains(Object oo)
Tests if the argument is in this set. |
boolean |
contains(String name)
Tests if the Dimension identified by name
is in this set. |
Dimension |
get(String name)
Gets the dimension associated with the specified name. |
(package private) int |
indexOf(Dimension elem)
Searches for the specified object, starting from the first position and returns an index to it. |
(package private) void |
initialPut(Dimension dim)
Add a Dimension instance to this dictionary. |
DimensionIterator |
iterator()
Returns an iterator of the elements. |
(package private) Dimension |
put(Dimension dim)
Ensures that this set contains a Dimension which is equal() to the argument. |
(package private) boolean |
remove(String name)
Delete the Dimension specified by name from this set. |
int |
size()
Returns the number of elements contained within the Dictionary. |
Dimension[] |
toArray()
Returns a new Array containing the elements of this set. |
void |
toCdl(StringBuffer buf)
Format as CDL. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
DimensionDictionary()
DimensionDictionary(DimensionSet ss)
DimensionDictionary(ProtoVariable[] varArray)
| Method Detail |
public int size()
size in interface DimensionSetpublic DimensionIterator iterator()
iterator in interface DimensionSetIteratorpublic Dimension[] toArray()
DimensionSet
toArray in interface DimensionSetpublic Dimension get(String name)
get in interface DimensionSetname - the name of the dimension
public boolean contains(String name)
name
is in this set.
contains in interface DimensionSetname - String which identifies the desired dimension
true if and only if this set contains
the named Dimension.public boolean contains(Object oo)
contains in interface DimensionSetoo - some Object
true if and only if this set contains
oopublic void toCdl(StringBuffer buf)
buf - StringBuffer into which to writepublic String toString()
Dimension put(Dimension dim)
If a different (not equal()) Dimension with the same name was in the set, throw IllegalArgumentException.
dim - the Dimension to be added to this set.
void initialPut(Dimension dim)
boolean remove(String name)
name - String identifying the Dimension to be removed.
int indexOf(Dimension elem)
elem - the desired element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||