|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.tfm.TfmIndexMultimap
public class 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 void add(int key,
int val)
key - the key of the new pair.val - the value of the new pair.public TfmKeyInt at(int i)
i - the position of pair to be examined.
public TfmIndexMultimap.Enum forKey(int key)
key - the given key.
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 int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||