public class Readers extends Object implements Serializable
Constructor and Description |
---|
Readers() |
Readers(List<Reader> readers) |
Readers(Reader reader) |
Modifier and Type | Method and Description |
---|---|
void |
addReader(int index,
Reader vReader) |
void |
addReader(Reader vReader) |
Enumeration<Reader> |
enumerateReader()
Method enumerateReader.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Reader[] |
getReader()
Method getReader.Returns the contents of the collection in an Array.
|
Reader |
getReader(int index)
Method getReader.
|
List<Reader> |
getReaderCollection()
Method getReaderCollection.Returns a reference to '_readerList'.
|
int |
getReaderCount()
Method getReaderCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
Iterator<Reader> |
iterateReader()
Method iterateReader.
|
void |
removeAllReader() |
boolean |
removeReader(Reader vReader)
Method removeReader.
|
Reader |
removeReaderAt(int index)
Method removeReaderAt.
|
void |
setReader(int index,
Reader vReader) |
void |
setReader(List<Reader> vReaderList)
Sets the value of '_readerList' by copying the given Vector.
|
void |
setReader(Reader[] vReaderArray) |
public Readers()
public Readers(Reader reader)
public void addReader(Reader vReader) throws IndexOutOfBoundsException
vReader
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addReader(int index, Reader vReader) throws IndexOutOfBoundsException
index
- vReader
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Reader> enumerateReader()
public boolean equals(Object obj)
public Reader getReader(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Reader[] getReader()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Reader> getReaderCollection()
public int getReaderCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Reader> iterateReader()
public void removeAllReader()
public boolean removeReader(Reader vReader)
vReader
- public Reader removeReaderAt(int index)
index
- public void setReader(int index, Reader vReader) throws IndexOutOfBoundsException
index
- vReader
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setReader(Reader[] vReaderArray)
vReaderArray
- Copyright © 2017. All rights reserved.