org.datacleaner.visualization.JavaScatterAnalyzerResult Maven / Gradle / Ivy
/**
* DataCleaner (community edition)
* Copyright (C) 2014 Neopost - Customer Information Management
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
package org.datacleaner.visualization;
import java.util.ArrayList;
import java.util.List;
import org.datacleaner.api.InputColumn;
public class JavaScatterAnalyzerResult implements IScatterAnalyzerResult {
private static final long serialVersionUID = 1L;
private final List _groups;
private final InputColumn> _variable1;
private final InputColumn> _variable2;
private final InputColumn> _groupColumn;
public JavaScatterAnalyzerResult(final List groups, final InputColumn> variable1,
final InputColumn> variable2, final InputColumn> groupColumn) {
// Make sure all Scala stuff is gone
_groups = new ArrayList<>(groups);
_variable1 = variable1;
_variable2 = variable2;
_groupColumn = groupColumn;
}
@Override
public InputColumn> getVariable1() {
return _variable1;
}
@Override
public InputColumn> getVariable2() {
return _variable2;
}
@Override
public InputColumn> getGroupColumn() {
return _groupColumn;
}
@Override
public boolean hasGroups() {
return _groupColumn != null;
}
@Override
public List getGroups() {
return _groups;
}
}