|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.netcdf.Dimension
ucar.netcdf.UnlimitedDimension
A Dimension object is used to contain an array length which is named for use in multiple netcdf variables. For UnlimitedDimensions, the array length value may grow. An UnlimitedDimension may appear as the most slowly varying dimension of a Variable.
This class supports construction, retrieval of the name, retrieval of the length value, and increase of the length value.
Instances are only distiguished by name. Override hashCode() and equals() to create this semantic.
Dimension,
Serialized Form| Field Summary |
| Fields inherited from class ucar.netcdf.Dimension |
length |
| Constructor Summary | |
|
UnlimitedDimension(String name)
The usual constructor defaults initial length to 0. |
(package private) |
UnlimitedDimension(String name,
int length)
Constructing from other data sets with initial length. |
| Method Summary | |
Object |
clone()
|
boolean |
equals(Object oo)
Instances are only distiguished by name. |
int |
hashCode()
Instances are only distiguished by name. |
int |
setLength(int newLength)
Set the length to be at least newLength Should be Package private. |
void |
toCdl(StringBuffer buf)
Format as CDL. |
| Methods inherited from class ucar.netcdf.Dimension |
getLength, getName, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UnlimitedDimension(String name)
name - String which is to be the
name of this UnlimitedDimension
UnlimitedDimension(String name,
int length)
name - String which is to be the
name of this UnlimitedDimensionlength - int which is the initial length| Method Detail |
public int hashCode()
hashCode in class Dimensionpublic boolean equals(Object oo)
equals in class Dimensionpublic Object clone()
clone in class Dimensionpublic void toCdl(StringBuffer buf)
toCdl in class Dimensionbuf - StringBuffer into which to writepublic int setLength(int newLength)
newLength - int which is the minimum new length
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||