|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.type.tfm.TFMIndexMultimap
TFMIndexMultimap can store and retrieve int
values associated to particular int
key. There can be
more values associated to the same key.
TFtoPL[63]
Nested Class Summary | |
class |
TFMIndexMultimap.Enum
Class Enum provides the sequence of all values
associated to particular key. |
Constructor Summary | |
TFMIndexMultimap()
Create a new object |
Method Summary | |
void |
add(int key,
int val)
Adds a new (key, value) pair. |
TFMKeyInt |
at(int i)
(key, value) pair at given position. |
TFMIndexMultimap.Enum |
forKey(int key)
Gives the sequence of all keys associated to the given key. |
void |
insert(TFMKeyInt p,
int i)
Insert a (key, value) pair at the given position. |
int |
search(int key)
Gives the position where a (key, value) pair with given key is stored or where it should be stored if there is no such pair. |
int |
size()
The number of (key, value) pairs kept. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TFMIndexMultimap()
Method Detail |
public int size()
public TFMKeyInt at(int i)
i
- the position of pair to be examined.
public void insert(TFMKeyInt p, int i)
p
- the pair to be inserted.i
- the position to be inserted to.public int search(int key)
key
- the key searched for.
public void add(int key, int val)
key
- the key of the new pair.val
- the value of the new pair.public TFMIndexMultimap.Enum forKey(int key)
key
- the given key.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |