|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnom.tam.fits.CardTable
This class stores a set of FITS header cards.
| Constructor Summary | |
CardTable()
Create an empty table to hold FITS cards. |
|
CardTable(int initialCapacity,
int capacityIncrement)
Create an empty table to hold FITS cards. |
|
| Method Summary | |
void |
addElement(HeaderCard card)
Add the specified card to the end of this table. |
boolean |
containsKey(String key)
Tests if the specified keyword is present in this table. |
HeaderCard |
elementAt(int index)
Return the card found at the specified index. |
HeaderCard |
findKey(String key)
Finds the first occurence of the specified key. |
int |
indexOf(HeaderCard card)
Searches for the first occurence of the given card. |
void |
insertElementAt(HeaderCard card,
int index)
Inserts the specified card at the specified index. |
void |
removeElementAt(int index)
Removes the card at the specified index. |
void |
setElementAt(HeaderCard card,
int index)
Replace the card at the specified index with the specified card. |
int |
size()
Returns the number of cards in this table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CardTable(int initialCapacity,
int capacityIncrement)
initialCapacity - the initial capacity of the table.capacityIncrement - the amount by which the capacity is
increased when the table overflows.public CardTable()
| Method Detail |
public final void addElement(HeaderCard card)
card - the card to be added.public final HeaderCard elementAt(int index)
index - an index into this table.
ArrayIndexOutOfBoundsException - if an invalid index was given.public final int indexOf(HeaderCard card)
card - the card be found.
public final void insertElementAt(HeaderCard card,
int index)
card - the card be inserted.index - where the card should be inserted.
ArrayIndexOutOfBoundsException - if the index was invalid.public final void removeElementAt(int index)
index - of the card to be removed.
ArrayIndexOutOfBoundsException - if the index was invalid.
public final void setElementAt(HeaderCard card,
int index)
index - of the card to be replaced.
ArrayIndexOutOfBoundsException - if the index was invalid.public final int size()
public final HeaderCard findKey(String key)
key - the keyword to be found.
public final boolean containsKey(String key)
key - the keyword to be found.
true if the specified keyword is present in this
table; false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||