Documentation ¶
Index ¶
- type ConcurrentGenericMap
- func (m *ConcurrentGenericMap[Key, Value]) Add(key Key, value Value)
- func (m *ConcurrentGenericMap[Key, Value]) Clear()
- func (m *ConcurrentGenericMap[Key, Value]) Copy() *ConcurrentGenericMap[Key, Value]
- func (m *ConcurrentGenericMap[Key, Value]) Delete(key Key)
- func (m *ConcurrentGenericMap[Key, Value]) Find(key Key) Value
- func (m *ConcurrentGenericMap[Key, Value]) FindExists(key Key) (Value, bool)
- func (m *ConcurrentGenericMap[Key, Value]) Keys() []Key
- func (m *ConcurrentGenericMap[Key, Value]) Len() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrentGenericMap ¶
type ConcurrentGenericMap[Key comparable, Value any] struct { // contains filtered or unexported fields }
func NewConcurrentGenericMap ¶
func NewConcurrentGenericMap[Key comparable, Value any](mapLength int) *ConcurrentGenericMap[Key, Value]
func (*ConcurrentGenericMap[Key, Value]) Add ¶
func (m *ConcurrentGenericMap[Key, Value]) Add(key Key, value Value)
func (*ConcurrentGenericMap[Key, Value]) Clear ¶
func (m *ConcurrentGenericMap[Key, Value]) Clear()
func (*ConcurrentGenericMap[Key, Value]) Copy ¶
func (m *ConcurrentGenericMap[Key, Value]) Copy() *ConcurrentGenericMap[Key, Value]
func (*ConcurrentGenericMap[Key, Value]) Delete ¶
func (m *ConcurrentGenericMap[Key, Value]) Delete(key Key)
func (*ConcurrentGenericMap[Key, Value]) Find ¶
func (m *ConcurrentGenericMap[Key, Value]) Find(key Key) Value
func (*ConcurrentGenericMap[Key, Value]) FindExists ¶
func (m *ConcurrentGenericMap[Key, Value]) FindExists(key Key) (Value, bool)
func (*ConcurrentGenericMap[Key, Value]) Keys ¶
func (m *ConcurrentGenericMap[Key, Value]) Keys() []Key
func (*ConcurrentGenericMap[Key, Value]) Len ¶
func (m *ConcurrentGenericMap[Key, Value]) Len() int
Click to show internal directories.
Click to hide internal directories.