59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
"""
|
|
This type stub file was generated by pyright.
|
|
"""
|
|
|
|
from typing import Any, List, Optional
|
|
|
|
"""Multimap module."""
|
|
class Multimap:
|
|
"""Multimap class."""
|
|
def __init__(self) -> None:
|
|
"""Make new multimap."""
|
|
...
|
|
|
|
def set(self, key: Optional[str], value: Any) -> None:
|
|
"""Set value."""
|
|
...
|
|
|
|
def get(self, key: Optional[str]) -> List[Any]:
|
|
"""Get values."""
|
|
...
|
|
|
|
def has(self, key: Optional[str]) -> bool:
|
|
"""Check key is in this map."""
|
|
...
|
|
|
|
def hasValue(self, key: Optional[str], value: Any) -> bool:
|
|
"""Check value is in this map."""
|
|
...
|
|
|
|
def size(self) -> int:
|
|
"""Length of this map."""
|
|
...
|
|
|
|
def delete(self, key: Optional[str], value: Any) -> bool:
|
|
"""Delete value from key."""
|
|
...
|
|
|
|
def deleteAll(self, key: Optional[str]) -> None:
|
|
"""Delete all value of the key."""
|
|
...
|
|
|
|
def firstValue(self, key: Optional[str]) -> Any:
|
|
"""Get first value of the key."""
|
|
...
|
|
|
|
def firstKey(self) -> Optional[str]:
|
|
"""Get first key."""
|
|
...
|
|
|
|
def valuesArray(self) -> List[Any]:
|
|
"""Get all values as list."""
|
|
...
|
|
|
|
def clear(self) -> None:
|
|
"""Clear all entries of this map."""
|
|
...
|
|
|
|
|
|
|