feat: add Get and Has to fileReferenceMap

This commit is contained in:
Derrick Hammer 2024-03-01 22:23:31 -05:00
parent 9a2d7ebd31
commit ed79c80def
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 16 additions and 0 deletions

View File

@ -49,6 +49,22 @@ func (drm fileReferenceMap) Items() map[string]*FileReference {
return files return files
} }
func (drm fileReferenceMap) Get(key string) *FileReference {
ret, found := drm.Map.Get(key)
if !found {
return nil
}
return ret.(*FileReference)
}
func (drm fileReferenceMap) Has(key string) bool {
_, found := drm.Map.Get(key)
return found
}
type fileReferenceSerializationMap struct { type fileReferenceSerializationMap struct {
linkedhashmap.Map linkedhashmap.Map
} }