1 /*
2 * PCUServeur for the PCU project.
3 * Copyright (C) 2010 PLU Julien
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * For questions: julien.plu@redaction-developpez.com
19 */
20 package pcuserveur.lib;
21
22 /**
23 * @author PLU Julien
24 * @version 1.0
25 *
26 * <b>
27 * Cette interface demande aux classes l'implémentant, qu'une
28 * instance d'objet puisse avoir un état particulier, dit "vide". Un
29 * objet vide et un objet inutilisé et pouvant être récupéré.
30 * </b>
31 */
32 public interface Vide {
33 /**
34 * <p>
35 * Savoir si l'objet est vide.
36 * </p>
37 *
38 * @return true si l'objet est vide, false sinon.
39 */
40 boolean estVide ();
41
42 /**
43 * <p>
44 * Vider l'objet.
45 * </p>
46 */
47 void vider ();
48 }