public boolean hasMoreElements(Instances structure){
  boolean result;
  result=false;
  if (isIncremental()) {
    if (m_IncrementalBuffer != null) {
      result=true;
    }
 else {
      try {
        m_IncrementalBuffer=m_Loader.getNextInstance(structure);
        result=(m_IncrementalBuffer != null);
      }
 catch (      Exception e) {
        e.printStackTrace();
        result=false;
      }
    }
  }
 else {
    result=(m_BatchCounter < m_BatchBuffer.numInstances());
  }
  return result;
}

public boolean hasMoreElements ( Instances structure ) { boolean result ; result = false ; if ( isIncremental ( ) ) { if ( m_IncrementalBuffer != null ) { result = true ; } else { try { m_IncrementalBuffer = m_Loader . getNextInstance ( structure ) ; result = ( m_IncrementalBuffer != null ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; result = false ; } } } else { result = ( m_BatchCounter < m_BatchBuffer . numInstances ( ) ) ; } return result ; }
returns whether there are more instance objects in the data .
