/** * Utility to add a value within the "regions" ArrayList of * "SubGeographicalRegion" * * @param regionsValue * value to add within the ArrayList * @param setInverse * boolean to specify whether to set the inverse association or not * @throws LinkageException */ public void addRegions( SubGeographicalRegion regionsValue, boolean setInverse) throws LinkageException { if (regions == null) { regions = new ArrayList<SubGeographicalRegion>(); } this.regions.add(regionsValue); this.currentBitset.set(0); if (setInverse) { if (regionsValue != null) { regionsValue.setRegion(this, false); } } }