feat: add Get and Has to fileReferenceMap
This commit is contained in:
parent
9a2d7ebd31
commit
ed79c80def
|
@ -49,6 +49,22 @@ func (drm fileReferenceMap) Items() map[string]*FileReference {
|
|||
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 {
|
||||
linkedhashmap.Map
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue