![JAR search and dependency download from the Maven repository](/logo.png)
io.github.vmzakharov.ecdataframe.dataframe.DfDateColumnStored Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataframe-ec Show documentation
Show all versions of dataframe-ec Show documentation
A tabular data structure based on the Eclipse Collections framework
package io.github.vmzakharov.ecdataframe.dataframe;
import io.github.vmzakharov.ecdataframe.dsl.value.DateValue;
import io.github.vmzakharov.ecdataframe.dsl.value.Value;
import org.eclipse.collections.api.list.ListIterable;
import java.time.LocalDate;
public class DfDateColumnStored
extends DfObjectColumnStored
implements DfDateColumn
{
public DfDateColumnStored(DataFrame owner, String newName)
{
super(owner, newName);
}
public DfDateColumnStored(DataFrame owner, String newName, ListIterable newValues)
{
super(owner, newName, newValues);
}
@Override
public void addObject(Object newObject)
{
this.addMyType((LocalDate) newObject);
}
@Override
public void addValue(Value value)
{
if (value.isVoid())
{
this.addObject(null);
}
else if (value.isDate())
{
this.addMyType(((DateValue) value).dateValue());
}
else
{
this.throwAddingIncompatibleValueException(value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy