alonefichiers
Class BooleanListe

java.lang.Object
  extended by modele.ObjectListe
      extended by alonefichiers.BooleanListe

public class BooleanListe
extends ObjectListe

To provide a set of Boolean's.

Author:
Gabriel Chandesris (2008)
See Also:
Interface1.actionPerformed(ActionEvent), ObjectListe

Field Summary
private  java.lang.Boolean[] liste
          The list of Boolean's.
 
Constructor Summary
BooleanListe()
          Default constructor with a list of 0 elements.
BooleanListe(java.lang.Boolean[] liste)
          Constructor with a pre-made table of Boolean's.
 
Method Summary
 void addBoolean(java.lang.Boolean elt)
          To add a Boolean at the end of the list.
 java.lang.Boolean getBoolean(int i)
           
 java.lang.Boolean[] getListeBoolean()
           
 boolean has(java.lang.Boolean elt)
          To know if a Boolean is in this list.
 int length()
          To get the length of the current list of Boolean's.
 void removeBoolean(java.lang.Boolean elt)
          To remove a specific Boolean.
 void removeBoolean(int nbElt)
          To remove a Boolean at a specific place in the list.
 void setBoolean(java.lang.Boolean elt, int i)
           
 void setListe(java.lang.Boolean[] liste)
           
 
Methods inherited from class modele.ObjectListe
addObjet, equals, getListeObjects, getObject, has, removeObject, removeObject, setListe, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

liste

private java.lang.Boolean[] liste
The list of Boolean's.

Constructor Detail

BooleanListe

public BooleanListe()
Default constructor with a list of 0 elements.


BooleanListe

public BooleanListe(java.lang.Boolean[] liste)
Constructor with a pre-made table of Boolean's.

Parameters:
liste -
Method Detail

length

public int length()
To get the length of the current list of Boolean's.

Specified by:
length in class ObjectListe
Returns:
int

getListeBoolean

public java.lang.Boolean[] getListeBoolean()

getBoolean

public java.lang.Boolean getBoolean(int i)

setListe

public void setListe(java.lang.Boolean[] liste)

setBoolean

public void setBoolean(java.lang.Boolean elt,
                       int i)

addBoolean

public void addBoolean(java.lang.Boolean elt)
To add a Boolean at the end of the list.

Parameters:
elt - Palindrome to add.

has

public boolean has(java.lang.Boolean elt)
To know if a Boolean is in this list.

Parameters:
elt - Boolean.
Returns:
boolean

removeBoolean

public void removeBoolean(java.lang.Boolean elt)
To remove a specific Boolean.

Parameters:
elt - Boolean to remove

removeBoolean

public void removeBoolean(int nbElt)
To remove a Boolean at a specific place in the list.

Parameters:
nbElt - Position of the Boolean.