|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.netcdf.Dimension
public class 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(java.lang.String name,
int length)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object oo)
Instances which have same name and same value are equal. |
int |
getLength()
Retrieve the length. |
java.lang.String |
getName()
Returns the name of this Dimension. |
int |
hashCode()
Instances which have same name and same value are equal. |
void |
toCdl(java.lang.StringBuffer buf)
Format as CDL. |
java.lang.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(java.lang.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()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object oo)
equals in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic final java.lang.String getName()
public final int getLength()
public void toCdl(java.lang.StringBuffer buf)
buf - StringBuffer into which to write
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||