Class ListeNode<T>
java.lang.Object
fr.formiko.usuel.structures.Node
fr.formiko.usuel.structures.listes.ListeNode<T>
- All Implemented Interfaces:
Serializable
Constituent ListeNode of the Linked Liste
- Author:
- Hydrolien
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add the t elementboolean
Equals function that also test next.getNext()
boolean
Delete the 1a t elementboolean
removeItem(int i)
Delete the xa elementvoid
setContent(T content)
void
Methods inherited from class fr.formiko.usuel.structures.Node
getChildren
-
Field Details
-
-
next
-
-
Constructor Details
-
ListeNode
Main constructor for ListeNode. -
ListeNode
Secondary constructor for ListeNode with null next item.
-
-
Method Details
-
getNext
-
setNext
-
getContent
-
setContent
-
equals
Equals function that also test next. -
removeItem
public boolean removeItem(int i)Delete the xa element- Parameters:
i
- the number of the element to remove.- Returns:
- true if it have been remove
-
remove
Delete the 1a t element- Parameters:
t
- the element to remove.- Returns:
- true if it have been remove
-
add
Add the t element- Parameters:
t
- the element to add.- Returns:
- true if it have been add.
-