public class DefaultCodeHolder extends java.lang.Object implements AdditiveCodeHolder, java.io.Serializable
Constructor and Description |
---|
DefaultCodeHolder() |
DefaultCodeHolder(java.util.List<CodeToReturn> codes) |
Modifier and Type | Method and Description |
---|---|
void |
add(CodeToReturn code)
Adds the code.
|
CodeHolder |
clone() |
boolean |
contains(CodeToReturn code)
Contains.
|
void |
difference(CodeHolder otherCodes)
Difference.
|
java.util.List<CodeToReturn> |
getAllCodes()
Gets the all codes.
|
int |
getNumberOfCodes()
Gets the number of codes.
|
void |
intersect(CodeHolder otherCodes)
Intersect.
|
void |
remove(CodeToReturn code)
Removes the.
|
void |
union(CodeHolder otherCodes)
Union.
|
boolean |
wereScoresCollected() |
public DefaultCodeHolder(java.util.List<CodeToReturn> codes)
public DefaultCodeHolder()
public boolean wereScoresCollected()
public void add(CodeToReturn code)
AdditiveCodeHolder
add
in interface AdditiveCodeHolder
code
- the codepublic void remove(CodeToReturn code)
CodeHolder
remove
in interface CodeHolder
code
- the codepublic java.util.List<CodeToReturn> getAllCodes()
CodeHolder
getAllCodes
in interface CodeHolder
public boolean contains(CodeToReturn code)
CodeHolder
contains
in interface CodeHolder
code
- the codepublic void union(CodeHolder otherCodes)
CodeHolder
union
in interface CodeHolder
otherCodes
- the other codespublic void intersect(CodeHolder otherCodes)
CodeHolder
intersect
in interface CodeHolder
otherCodes
- the other codespublic void difference(CodeHolder otherCodes)
CodeHolder
difference
in interface CodeHolder
otherCodes
- the other codespublic int getNumberOfCodes()
CodeHolder
getNumberOfCodes
in interface CodeHolder
public CodeHolder clone() throws java.lang.CloneNotSupportedException
clone
in interface CodeHolder
clone
in class java.lang.Object
java.lang.CloneNotSupportedException