Documentation
¶
Index ¶
- type SafeHashMap
- func (s *SafeHashMap) Contains(value interface{}) bool
- func (s *SafeHashMap) Copy() *SafeHashMap
- func (s *SafeHashMap) Get(key interface{}) (interface{}, bool)
- func (s *SafeHashMap) Length() int
- func (s *SafeHashMap) Set(key, value interface{})
- func (s *SafeHashMap) UnsafeGet(key interface{}) (interface{}, bool)
- func (s *SafeHashMap) UnsafeSet(key, value interface{})
- func (s *SafeHashMap) Values() map[interface{}]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeHashMap ¶
SafeHashMap is a concurrent safe Set interface implementation based on the hashmap
func (*SafeHashMap) Contains ¶
func (s *SafeHashMap) Contains(value interface{}) bool
Contains checks if given hash map has a given value
func (*SafeHashMap) Get ¶
func (s *SafeHashMap) Get(key interface{}) (interface{}, bool)
Get gets the safe hashmap value
func (*SafeHashMap) Set ¶
func (s *SafeHashMap) Set(key, value interface{})
Set sets the value at given _key
func (*SafeHashMap) UnsafeGet ¶
func (s *SafeHashMap) UnsafeGet(key interface{}) (interface{}, bool)
UnsafeGet gets the value at given key even if the map is locked
func (*SafeHashMap) UnsafeSet ¶
func (s *SafeHashMap) UnsafeSet(key, value interface{})
UnsafeSet adds the value at given key even if the map is locked
func (*SafeHashMap) Values ¶
func (s *SafeHashMap) Values() map[interface{}]interface{}
Values gets the hashmap values
Click to show internal directories.
Click to hide internal directories.