public class Set_Std_LinkedList_NoRecycling extends Set_LinkedList
Modifier and Type | Class and Description |
---|---|
protected class |
Set_Std_LinkedList_NoRecycling.ListOP |
Modifier and Type | Field and Description |
---|---|
protected static boolean |
ADD |
protected static boolean |
REMOVE |
Constructor and Description |
---|
Set_Std_LinkedList_NoRecycling(IEnvironment environment) |
Modifier and Type | Method and Description |
---|---|
protected void |
_add(int element) |
protected boolean |
_remove(int element) |
boolean |
add(int element)
Add element to the set
Does not guaranty there is no duplications
|
void |
clear()
Remove all elements from the set
|
protected void |
free(Set_Std_LinkedList_NoRecycling.ListOP op) |
protected void |
makeOperation(int element,
boolean addOrRem) |
boolean |
remove(int element)
Remove the first occurence of element from the set
|
contain, getFirstElement, getMaxSize, getNextElement, getSetType, getSize, isEmpty, toArray, toString
protected static final boolean ADD
protected static final boolean REMOVE
public Set_Std_LinkedList_NoRecycling(IEnvironment environment)
public boolean add(int element)
ISet
add
in interface ISet
add
in class Set_LinkedList
element
- element to addprotected void _add(int element)
public boolean remove(int element)
ISet
remove
in interface ISet
remove
in class Set_LinkedList
element
- element to addprotected boolean _remove(int element)
public void clear()
ISet
clear
in interface ISet
clear
in class Set_LinkedList
protected void makeOperation(int element, boolean addOrRem)
protected void free(Set_Std_LinkedList_NoRecycling.ListOP op)
Copyright © 2015. All rights reserved.