public boolean isAscending() {
    loadValuesIfNeeded();
    switch (spacing) {
      case regularInterval:
      case regularPoint:
        return getResolution() > 0;

      case irregularPoint:
        return values[0] <= values[ncoords - 1];

      case contiguousInterval:
        return values[0] <= values[ncoords];

      case discontiguousInterval:
        return values[0] <= values[2 * ncoords - 1];
    }
    throw new IllegalStateException("unknown spacing" + spacing);
  }
public boolean isAscending() {
    loadValuesIfNeeded();
    switch (spacing) {
      case regularInterval:
      case regularPoint:
        return getResolution() > 0;

      case irregularPoint:
        return values[0] <= values[ncoords - 1];

      case contiguousInterval:
        return values[0] <= values[ncoords];

      case discontiguousInterval:
        return values[0] <= values[2 * ncoords - 1];
    }
    throw new IllegalStateException("unknown spacing" + spacing);
  }
public boolean isAscending ( ) { loadValuesIfNeeded ( ) ; switch ( spacing ) { case regularInterval : case regularPoint : return getResolution ( ) > 0 ; case irregularPoint : return values [ 0 ] <= values [ ncoords - 1 ] ; case contiguousInterval : return values [ 0 ] <= values [ ncoords ] ; case discontiguousInterval : return values [ 0 ] <= values [ 2 * ncoords - 1 ] ; } throw new IllegalStateException ( "unknown spacing" + spacing ) ; }
Spacing
Spacing