Package hec.lang
Class Array2dContainer
java.lang.Object
hec.lang.Array2dContainer
- All Implemented Interfaces:
FieldAccessor,Serializable
- Direct Known Subclasses:
DoubleArray2dContainer,FloatArray2dContainer
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyInto(Array2dContainer cont) intgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.
-
Field Details
-
rows
protected int rows -
cols
protected int cols
-
-
Constructor Details
-
Array2dContainer
public Array2dContainer(int cols, int rows)
-
-
Method Details
-
copyInto
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-