|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.uds.cs.st.dd.core.TConfiguration
Stores a specific test configuration. This is the primary data structure the core operates on.
Field Summary | |
private LinkedList |
list
Internally, a linked list is used to store all deltas. |
Constructor Summary | |
|
TConfiguration()
Creates a new (empty) TConfiguration. |
private |
TConfiguration(List source)
Creates a new TConfiguration that contains all elements of the source list. |
|
TConfiguration(TConfiguration source)
Creates a new TConfiguration that contains all elements of the source TConfiguration. |
Method Summary | |
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
TConfiguration |
copy()
Returns a copy of this TConfiguration. |
private LinkedList |
deepListCopy()
Returns a copy of the elements of this TConfiguration. |
private LinkedList |
deepListCopy(List source)
Copies all elements of the source list into the list object of this TConfiguration. |
Object |
get(int index)
Returns the element at the specified index. |
Object |
getShallow(int index)
Returns the element at the specified index, regardless of its type. |
TConfiguration |
intersect(TConfiguration config)
Returns all elements that are in this configuration and in the specified one. |
boolean |
isEmpty()
|
boolean |
isSubsetEq(TConfiguration config)
Returns true, if this object is a subset or equal to the passed argument, false otherwise. |
Iterator |
iterator()
|
TConfiguration |
minus(TConfiguration config)
Returns a TConfiguration containing all elements that are in this object but not in the passed parameter. |
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object o)
|
int |
size()
|
void |
sort()
Sorts this TConfiguration is ascending order. |
TConfiguration |
subSet(int startIndex,
int endIndex)
Returns a new TConfiguration that contains a subset of the original TConfiguration. |
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toCharacterString()
Returns a string representation of this configuration. |
String |
toSortedString()
Returns a string representation of a sorted copy of this configuration. |
String |
toString()
|
TConfiguration |
union(TConfiguration config)
Returns a union of this configuration with the passed parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
private LinkedList list
Constructor Detail |
public TConfiguration()
public TConfiguration(TConfiguration source)
source
- source TConfiguration to be copied.private TConfiguration(List source)
source
- source list to be copied.Method Detail |
private LinkedList deepListCopy(List source)
source
- source list to be copied.
private LinkedList deepListCopy()
public TConfiguration copy()
public int size()
size
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public boolean contains(Object o)
contains
in interface Collection
public Iterator iterator()
iterator
in interface Collection
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
public boolean add(Object o)
add
in interface Collection
public boolean remove(Object o)
remove
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public void clear()
clear
in interface Collection
public Object get(int index)
index
- index of the element.
public Object getShallow(int index)
index
- index of the element.
public Object set(int index, Object o)
public String toString()
toString
in class Object
public String toCharacterString()
public String toSortedString()
public void sort()
public TConfiguration subSet(int startIndex, int endIndex)
startIndex
- starting index of the subset.endIndex
- ending index of the subset.
public TConfiguration minus(TConfiguration config)
config
- TConfiguration object that contains all the elements
that are _not_ in the returned object.
public TConfiguration intersect(TConfiguration config)
config
- TConfiguration object that is used for the operation.
public TConfiguration union(TConfiguration config)
config
- TConfiguration object that is used for the operation.
public boolean isSubsetEq(TConfiguration config)
config
- TConfiguration object that is used for the operation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |