/** * Creates an immutable instance of GeoLong extension with the coordinate * set to the value passed in. * * @param lon The longitude coordinate reprensented by this element. * @throws IllegalArgumentException if the longitude is not between * -180 and 180 degrees. */ public GeoLong(Double lon) throws IllegalArgumentException { super(Namespaces.W3C_GEO_NAMESPACE, "long", null, null); setRequired(true); if (lon != null) { setLongitude(lon); setImmutable(true); } }
/** * Creates an immutable instance of GeoLong extension with the coordinate * set to the value passed in. * * @param lon The longitude coordinate reprensented by this element. * @throws IllegalArgumentException if the longitude is not between * -180 and 180 degrees. */ public GeoLong(Double lon) throws IllegalArgumentException { super(Namespaces.W3C_GEO_NAMESPACE, "long", null, null); setRequired(true); if (lon != null) { setLongitude(lon); setImmutable(true); } }
/** * Creates an immutable instance of GeoLong extension with the coordinate * set to the value passed in. * * @param lon The longitude coordinate reprensented by this element. * @throws IllegalArgumentException if the longitude is not between * -180 and 180 degrees. */ public GeoLong(Double lon) throws IllegalArgumentException { super(Namespaces.W3C_GEO_NAMESPACE, "long", null, null); setRequired(true); if (lon != null) { setLongitude(lon); setImmutable(true); } }