AbstractGeographicExtent changes for revisions 24972:24973

Replacement of boolean primitive type by Boolean wrapper. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the Double values as required by GeoAPI interfaces. So rewriting this contribution produces identical result.

Action: all contributions forced by changes in GeoAPI interfaces (mostly import statements and method signatures) have been rewritten from scratch by creating an empty Java class implementing the interface, clicking on the "Implement all abstract methods" contextual menu in NetBeans, removing the <? extends> part in parameterized type of collections, adding the synchronized keyword (for now) and finally adding the corresponding private fields. This action has been committed in the Apache SIS JDK7 branch at revision 1458238.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24972:24973 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/extent/GeographicExtentImpl.java
Revision 24972Revision 24973
 * Indication of whether the bounding polygon encompasses an area covered by the data
 * (<cite>inclusion</cite>) or an area where data is not present (<cite>exclusion</cite>).
 */
private boolean inclusion;

/**
 * Constructs an initially empty geographic extent.
 * Indication of whether the bounding polygon encompasses an area covered by the data
 * (<cite>inclusion</cite>) or an area where data is not present (<cite>exclusion</cite>).
 */
private Boolean inclusion;

/**
 * Constructs an initially empty geographic extent.
 * Constructs a geographic extent initialized with the specified inclusion value.
 */
public GeographicExtentImpl(final boolean inclusion) {
    setInclusion(inclusion);
}

/**
 * Constructs a geographic extent initialized with the specified inclusion value.
 */
public GeographicExtentImpl(final boolean inclusion) {
    setInclusion(new Boolean(inclusion));
}

/**
 *
 * @return {@code true} for inclusion, or {@code false} for exclusion.
 */
public boolean getInclusion() {
    return inclusion;
}
 *
 * @return {@code true} for inclusion, or {@code false} for exclusion.
 */
public Boolean getInclusion() {
    return inclusion;
}
 * Set whether the bounding polygon encompasses an area covered by the data
 * (<cite>inclusion</cite>) or an area where data is not present (<cite>exclusion</cite>).
 */
public synchronized void setInclusion(final boolean newValue) {
    checkWritePermission();
    inclusion = newValue;
}
 * Set whether the bounding polygon encompasses an area covered by the data
 * (<cite>inclusion</cite>) or an area where data is not present (<cite>exclusion</cite>).
 */
public synchronized void setInclusion(final Boolean newValue) {
    checkWritePermission();
    inclusion = newValue;
}
 */
public synchronized int hashCode() {
    int code = (int)serialVersionUID;
    if (inclusion) code = ~code;
    return code;
}
 */
public synchronized int hashCode() {
    int code = (int)serialVersionUID;
    if (inclusion.booleanValue()) code = ~code;
    return code;
}