All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface key.Collection

public interface Collection
extends Storable

Method Index

 o conceal(Symbol)
Conceal the symbol - if possible
 o concealable(boolean)
While this is false, even conceal'd symbols are visible.
 o contains(Symbol)
 o count()
 o deallocate()
Called when anything cached can be 'deallocated'
 o elements()
 o get(Object)
 o getElementAt(int)
 o getExact(String)
 o getTrieFor(String)
Get multi-matches.
 o link(Symbol)
Adds the supplied atom
 o partialLink(Symbol)
 o removeElementAt(int)
 o reveal(Symbol)
Unconceal the symbol, if its concealed
 o sort()
Called when theres an opportunity to index the elements in the collection in some ordered way (as opposed to the haphazard way they're normally treated ;)
 o unlink(Symbol)

Methods

 o link
 public abstract void link(Symbol added) throws BadKeyException, NonUniqueKeyException
Adds the supplied atom

 o partialLink
 public abstract void partialLink(Symbol added) throws BadKeyException, NonUniqueKeyException
 o unlink
 public abstract void unlink(Symbol removed) throws NonUniqueKeyException, NoSuchElementException, BadKeyException
 o elements
 public abstract Enumeration elements()
 o count
 public abstract int count()
 o contains
 public abstract boolean contains(Symbol o)
 o get
 public abstract Object get(Object key)
 o getExact
 public abstract Symbol getExact(String key)
 o conceal
 public abstract void conceal(Symbol a)
Conceal the symbol - if possible

 o reveal
 public abstract void reveal(Symbol a)
Unconceal the symbol, if its concealed

 o concealable
 public abstract void concealable(boolean t)
While this is false, even conceal'd symbols are visible. It starts out as false, is set to true, and can never be reset again.

 o deallocate
 public abstract void deallocate()
Called when anything cached can be 'deallocated'

 o sort
 public abstract void sort()
Called when theres an opportunity to index the elements in the collection in some ordered way (as opposed to the haphazard way they're normally treated ;)

 o getTrieFor
 public abstract Object getTrieFor(String match)
Get multi-matches. Only implemented in some Collections. (Not required) Marked for removal

 o getElementAt
 public abstract Symbol getElementAt(int c)
 o removeElementAt
 public abstract void removeElementAt(int c) throws NonUniqueKeyException, NoSuchElementException, BadKeyException

All Packages  Class Hierarchy  This Package  Previous  Next  Index