All Packages Class Hierarchy This Package Previous Next Index
Class key.SiteCollection
java.lang.Object
|
+----key.SiteCollection
- public class SiteCollection
- extends Object
- implements Collection
The numberedCollection is based on a hashtable of
integers. Every symbol thats added to it is required
to be an instance of 'Site', and it will be
automatically numbered and added to the container.
The numbered collection is mainly intended for
mail and news and so forth, and is generally
reverse ordered
-
SiteCollection()
-
-
conceal(Symbol)
-
-
concealable(boolean)
-
-
contains(Symbol)
-
-
count()
-
-
deallocate()
-
-
elements()
-
-
get(Integer)
-
-
get(Object)
- Returns the atom matched, or, possibly, an instance of
a Trie object that contains all the matching atoms.
-
getElementAt(int)
-
-
getExact(String)
-
-
getTrieFor(String)
-
-
link(Symbol)
- Add this object to the list of objects
-
loadFrom(DataInput)
-
-
partialLink(Symbol)
- Adds this atom to the database in such a
way that it can be matched, but not seen
by iterating through the elements.
-
removeElementAt(int)
- aha!, but I reserve the right to make this function more efficient
this way ;p~ (ie, it isn't very, atm)
-
reveal(Symbol)
-
-
sort()
- Sorts the elements in this linked trie
-
unlink(Symbol)
- Take this player out of the list of players
-
writeTo(DataOutput)
-
SiteCollection
public SiteCollection()
link
public void link(Symbol a) throws NonUniqueKeyException, BadKeyException
- Add this object to the list of objects
- Parameters:
- p - the player to add to the list
- Throws: NonUniqueKeyException
- if there is already a player in with this name
- Throws: BadKeyException
- if this players name is malformed somehow
conceal
public void conceal(Symbol a)
reveal
public void reveal(Symbol a)
partialLink
public void partialLink(Symbol a) throws NonUniqueKeyException, BadKeyException
- Adds this atom to the database in such a
way that it can be matched, but not seen
by iterating through the elements.
unlink
public void unlink(Symbol a) throws NoSuchElementException, BadKeyException
- Take this player out of the list of players
- Parameters:
- p - the player to remove from the list
- Throws: NoSuchElementException
- if the player is not in the list
- Throws: BadKeyException
- if the players name is malformed somehow
contains
public boolean contains(Symbol o)
sort
public void sort()
- Sorts the elements in this linked trie
get
public Object get(Object key)
- Returns the atom matched, or, possibly, an instance of
a Trie object that contains all the matching atoms.
A null is returned if no matches were found at all. The
match string is searched until the end of the string or
a non-alphabetical character is found.
- Parameters:
- match - the start or whole string to match from
- Returns:
- An atom object, referring to the sole match, or a Trie
getExact
public Symbol getExact(String key)
get
public Object get(Integer match)
getTrieFor
public Object getTrieFor(String match)
getElementAt
public Symbol getElementAt(int c)
removeElementAt
public void removeElementAt(int c) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
- aha!, but I reserve the right to make this function more efficient
this way ;p~ (ie, it isn't very, atm)
elements
public Enumeration elements()
count
public int count()
writeTo
public void writeTo(DataOutput to) throws IOException
loadFrom
public void loadFrom(DataInput from) throws IOException
deallocate
public void deallocate()
concealable
public void concealable(boolean t)
All Packages Class Hierarchy This Package Previous Next Index