public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (referenceList == null) { referenceList = new Vector<Marker>(); } referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not hold its future "parent" as a reference return; } else { referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (referenceList == null) { referenceList = new Vector<Marker>(); } referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (referenceList == null) { referenceList = new Vector<Marker>(); } referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException("A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (referenceList == null) { referenceList = new Vector<Marker>(); } referenceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }
public synchronized void add(Marker reference) { if (reference == null) { throw new IllegalArgumentException( "A null value cannot be added to a Marker as reference."); } // no point in adding the reference multiple times if (this.contains(reference)) { return; } else if (reference.contains(this)) { // avoid recursion // a potential reference should not its future "parent" as a reference return; } else { // let's add the reference if (refereceList == null) { refereceList = new Vector(); } refereceList.add(reference); } }