All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.data.DateTimeValue Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.data;

import java.time.Instant;

final class DateTimeValue
    extends Value
{
    DateTimeValue( final Instant value )
    {
        super( ValueTypes.DATE_TIME, value );
    }

    DateTimeValue( final DateTimeValue source )
    {
        super( ValueTypes.DATE_TIME, source.getObject() );
    }

    @Override
    Value copy( final PropertyTree tree )
    {
        return new DateTimeValue( this );
    }

    @Override
    Object toJsonValue()
    {
        return asString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy