io.github.vmzakharov.ecdataframe.dataframe.DfDateTimeColumnComputed 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.DateTimeValue;
import io.github.vmzakharov.ecdataframe.dsl.value.Value;
import java.time.LocalDateTime;
public class DfDateTimeColumnComputed
extends DfObjectColumnComputed
implements DfDateTimeColumn
{
public DfDateTimeColumnComputed(DataFrame newDataFrame, String newName, String newExpressionAsString)
{
super(newDataFrame, newName, newExpressionAsString);
}
@Override
public LocalDateTime getTypedObject(int rowIndex)
{
Value result = this.getValue(rowIndex);
return result.isVoid() ? null : ((DateTimeValue) result).dateTimeValue();
}
}