public class CodeSet extends Object implements Iterable<Code>, Serializable
| Constructor and Description |
|---|
CodeSet()
Create an empty set of codes.
|
CodeSet(Code... codeList)
Create this object with all the codes in the specified array.
|
CodeSet(Code code)
Create this object with a single code.
|
CodeSet(Collection<Code> codeCollection)
Create this object with all the codes in the specified collection.
|
CodeSet(String codeSpace,
String code)
Create this object with a single code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String codeSpace,
String code)
Determine whether or not this code set contains the specified code.
|
Collection<Code> |
getCodes(String codeSpace)
Get all of the codes for the specified code space.
|
Code |
getFirstCode(String codeSpace)
Get a code for the specified code space.
|
boolean |
isEmpty()
Determine whether or not this code set is empty.
|
Iterator<Code> |
iterator()
Get an iteration of all the codes in this set.
|
int |
size()
Get the number of codes in this code set.
|
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic CodeSet()
public CodeSet(String codeSpace, String code)
codeSpace - The codeSpace of the code.code - The code value.public CodeSet(Code code)
code - The code to be contained in this set.public CodeSet(Code... codeList)
codeList - The new CodeSet will create all of these codes.public CodeSet(Collection<Code> codeCollection)
codeCollection - The new CodeSet will create all of these codes.public int size()
public boolean isEmpty()
public Collection<Code> getCodes(String codeSpace)
codeSpace - Get the codes from this set with this code space.public Code getFirstCode(String codeSpace)
codeSpace - Get the first code from this set with this code space.public Iterator<Code> iterator()
iterator in interface Iterable<Code>UnsupportedOperationException if Iterator.remove() } is called.