public boolean contains(final MoveStepType type){
  for (final Enumeration<MoveStep> i=getSteps(); i.hasMoreElements(); ) {
    final MoveStep step=i.nextElement();
    if (step.getType() == type) {
      return true;
    }
  }
  return false;
}

public boolean contains ( final MoveStepType type ) { for ( final Enumeration < MoveStep > i = getSteps ( ) ; i . hasMoreElements ( ) ; ) { final MoveStep step = i . nextElement ( ) ; if ( step . getType ( ) == type ) { return true ; } } return false ; }
check for any of the specified type of step in the path
