Java tutorial
/** * Copyright 2014-2016 LIST (Luxembourg Institute of Science and Technology), all right reserved. * Authorship : Olivier PARISOT, Yoanne DIDRY * Licensed under GNU General Public License version 3 */ package lu.lippmann.cdb.datasetview.tasks; import weka.core.Instances; /** * Task. * * @author the WP1 team */ public final class RemoveFirstAttrTask extends Task { /** * {@inheritDoc} */ @Override String getName() { return "Remove first attribute"; } /** * {@inheritDoc} */ @Override String getIconPath() { return "menu/remove-missing.png"; } /** * {@inheritDoc} */ @Override Instances process0(final Instances dataSet) throws Exception { final Instances newds = new Instances(dataSet); newds.deleteAttributeAt(0); return newds; } }