Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://angel.cs.msu.su/projects/system/toolsdoc/netcdf_java/ucar/netcdf/Dimension.html
Дата изменения: Tue Dec 28 20:59:06 2004 Дата индексирования: Sun Apr 10 00:14:22 2016 Кодировка: |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ucar.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 FormField 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 DimensionMethod Detail |
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object oo)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String getName()
getName
in interface ucar.netcdf.Named
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |