User`s guide
Guidelines for Working with MWArray Classes
MWLogicalArray a1 = MWLogicalArray.newInstance(dims, x1);
MWLogicalArray a2 = MWLogicalArray.newInstance(dims, x2);
MWLogicalArray a3 = MWLogicalArray.newInstance(dims, x3);
MWLogicalArray a4 = MWLogicalArray.newInstance(dims, x4);
Accessing MWLogicalArray Elements
The MWLogicalArray class provides m ethods for accessing and modifying
array d ata in the form of
get and set methods. The following table lists the
get and set methods.
Method Usage
get(int)
Returns the element at the one-based index as type
java.lang.Boolean (inherited from MWArray).
get(int[])
Returns the element at the one-based index array as
type
java.lang.Boolean (inherited from MWArray).
getBoolean(int)
Returns the element at the one-based index as type
boolean.
getBoolean(int[])
Returns the element at the one-based index array as
type
boolean.
set(int, Object)
Replaces the element at the one-based index with
the supplied value (inherited from
MWArray).
set(int[],
Object)
Replaces the element at the one-based in d ex array
with the supplied value (inherited from
MWArray).
set(int, boolean)
Replaces the element at the one-based index with
the supplied
boolean value.
set(int[],
boolean)
Replaces element at the one-based index array with
the supplied
boolean value.
The get methods return a java.lang.Boolean repres enting the value at
the specified index. The
getBoolean methods do the same thing, except
they return a primitive
boolean value. The set methods replace the v alue
at the specified index with the supplied value. These methods collectively
supportthesametypesasthe
MWLogicalArray constructors: boolean,
4-25