|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.netcdf.Dimension
A Dimension object is used to contain an array length which is named for use in multiple netcdf variables.
This class supports construction, retrieval of the name and retrieval of the length value. The name is constant over the lifetime of the object. Also note that change of the dimension length value is not allowed. In the subclass UnlimitedDimension, the length may be increased.
Instances which have same name and same value are equal. We override hashCode() and equals() to be consistent with this semantic.
UnlimitedDimension,
Serialized Form| Field Summary | |
protected int |
length
The length. |
| Constructor Summary | |
Dimension(String name,
int length)
|
|
| Method Summary | |
Object |
clone()
|
boolean |
equals(Object oo)
Instances which have same name and same value are equal. |
int |
getLength()
Retrieve the length. |
String |
getName()
Returns the name of this Dimension. |
int |
hashCode()
Instances which have same name and same value are equal. |
void |
toCdl(StringBuffer buf)
Format as CDL. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int length
| Constructor Detail |
public Dimension(String name,
int length)
name - String which is to be the name of this Dimensionlength - int length of this Dimension| Method Detail |
public int hashCode()
public boolean equals(Object oo)
public Object clone()
public String toString()
public final String getName()
getName in interface Namedpublic final int getLength()
public void toCdl(StringBuffer buf)
buf - StringBuffer into which to write
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||