ucar.netcdf
Class UnlimitedDimension
java.lang.Object
|
+--ucar.netcdf.Dimension
|
+--ucar.netcdf.UnlimitedDimension
- All Implemented Interfaces:
- java.lang.Cloneable, ucar.netcdf.Named, java.io.Serializable
- public class UnlimitedDimension
- extends Dimension
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.
- See Also:
Dimension, Serialized Form
|
Constructor Summary |
UnlimitedDimension(java.lang.String name)
The usual constructor defaults initial length to 0. |
|
Method Summary |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.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(java.lang.StringBuffer buf)
Format as CDL. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
UnlimitedDimension
public UnlimitedDimension(java.lang.String name)
- The usual constructor defaults initial length to 0.
- Parameters:
name - String which is to be the
name of this UnlimitedDimension
hashCode
public int hashCode()
- Instances are only distiguished by name.
Override super.hashCode() to be consistent with this semantic.
- Overrides:
hashCode in class Dimension
equals
public boolean equals(java.lang.Object oo)
- Instances are only distiguished by name.
Override super.equals() to to be consistent with this semantic.
- Overrides:
equals in class Dimension
clone
public java.lang.Object clone()
- Overrides:
clone in class Dimension
toCdl
public void toCdl(java.lang.StringBuffer buf)
- Format as CDL.
- Overrides:
toCdl in class Dimension
- Parameters:
buf - StringBuffer into which to write
setLength
public int setLength(int newLength)
- Set the length to be at least newLength
Should be Package private.
- Parameters:
newLength - int which is the minimum new length- Returns:
- int amount by which this grew to satisfy the request.