All pastes #480866 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-05-10 13:53 UTC
rendered paste body
import java.util.HashSet;public class Raum {	private int nummer;	private HashSet<Pruefung> pruefungen = new HashSet<Pruefung>();		public void setNummer(int nummer) {		this.nummer = nummer;	}		public int getNummer() {		return this.nummer;	}		public Raum(int nummer) {		this.setNummer(nummer);	}		public void addPruefung(Pruefung pruef) {		if(!this.pruefungen.add(pruef)) {			pruef.setRaum(this);		}	}}