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

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

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

import com.enonic.xp.util.GeoPoint;

final class GeoPointValue
    extends Value
{
    GeoPointValue( final GeoPoint value )
    {
        super( ValueTypes.GEO_POINT, value );
    }

    GeoPointValue( final GeoPointValue source )
    {
        super( ValueTypes.GEO_POINT, source.getObject() );
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy