cdm/src/main/java/ucar/ma2/ArrayBoolean.java
static ArrayBoolean factory( Index index, boolean [] storage) {
      if (index instanceof Index0D) {
          return new ArrayBoolean.D0(index, storage);
      } else if (index instanceof Index1D) {
          return new ArrayBoolean.D1(index, storage);
      } else if (index instanceof Index2D) {
          return new ArrayBoolean.D2(index, storage);
      } else if (index instanceof Index3D) {
          return new ArrayBoolean.D3(index, storage);
      } else if (index instanceof Index4D) {
          return new ArrayBoolean.D4(index, storage);
      } else if (index instanceof Index5D) {
          return new ArrayBoolean.D5(index, storage);
      } else if (index instanceof Index6D) {
          return new ArrayBoolean.D6(index, storage);
      } else if (index instanceof Index7D) {
          return new ArrayBoolean.D7(index, storage);
      } else {
          return new ArrayBoolean(index, storage);
      }
  }
static ArrayBoolean factory( Index index, boolean [] storage) {
      if (index instanceof Index0D) {
          return new ArrayBoolean.D0(index, storage);
      } else if (index instanceof Index1D) {
          return new ArrayBoolean.D1(index, storage);
      } else if (index instanceof Index2D) {
          return new ArrayBoolean.D2(index, storage);
      } else if (index instanceof Index3D) {
          return new ArrayBoolean.D3(index, storage);
      } else if (index instanceof Index4D) {
          return new ArrayBoolean.D4(index, storage);
      } else if (index instanceof Index5D) {
          return new ArrayBoolean.D5(index, storage);
      } else if (index instanceof Index6D) {
          return new ArrayBoolean.D6(index, storage);
      } else if (index instanceof Index7D) {
          return new ArrayBoolean.D7(index, storage);
      } else {
          return new ArrayBoolean(index, storage);
      }
  }
static ArrayBoolean factory ( Index index , boolean [ ] storage ) { if ( index instanceof Index0D ) { return new ArrayBoolean . D0 ( index , storage ) ; } else if ( index instanceof Index1D ) { return new ArrayBoolean . D1 ( index , storage ) ; } else if ( index instanceof Index2D ) { return new ArrayBoolean . D2 ( index , storage ) ; } else if ( index instanceof Index3D ) { return new ArrayBoolean . D3 ( index , storage ) ; } else if ( index instanceof Index4D ) { return new ArrayBoolean . D4 ( index , storage ) ; } else if ( index instanceof Index5D ) { return new ArrayBoolean . D5 ( index , storage ) ; } else if ( index instanceof Index6D ) { return new ArrayBoolean . D6 ( index , storage ) ; } else if ( index instanceof Index7D ) { return new ArrayBoolean . D7 ( index , storage ) ; } else { return new ArrayBoolean ( index , storage ) ; } }
/* create new ArrayBoolean with given indexImpl and backing store.
Should be private.
@param index use this Index
@param stor. use this storage. if null, allocate.
@return. new ArrayDouble.D<rank> or ArrayDouble object.
/ * create new ArrayBoolean with given indexImpl and backing store . Should be private .