Documentation
¶
Overview ¶
Package uuidcollection provides collections keyed by UUID.
Index ¶
- type Map
- func (m *Map[T]) All() iter.Seq2[*uuidpb.UUID, T]
- func (m *Map[T]) Clear()
- func (m *Map[T]) Clone() *Map[T]
- func (m *Map[T]) Delete(k *uuidpb.UUID)
- func (m *Map[T]) Get(k *uuidpb.UUID) (T, bool)
- func (m *Map[T]) Has(k *uuidpb.UUID) bool
- func (m *Map[T]) IsEmpty() bool
- func (m *Map[T]) Keys() iter.Seq[*uuidpb.UUID]
- func (m *Map[T]) Len() int
- func (m *Map[T]) Set(k *uuidpb.UUID, v T)
- func (m *Map[T]) Values() iter.Seq[T]
- type Set
- func (s *Set) Add(v *uuidpb.UUID)
- func (s *Set) All() iter.Seq[*uuidpb.UUID]
- func (s *Set) Clear()
- func (s *Set) Clone() *Set
- func (s *Set) DapperString() string
- func (s *Set) Delete(v *uuidpb.UUID)
- func (s *Set) Delta(x *Set) (add, remove *Set)
- func (s *Set) Diff(x *Set) *Set
- func (s *Set) GoString() string
- func (s *Set) Has(v *uuidpb.UUID) bool
- func (s *Set) IsEmpty() bool
- func (s *Set) IsEqual(x *Set) bool
- func (s *Set) Len() int
- func (s *Set) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[T any] struct { // contains filtered or unexported fields }
Map is a map from uuidpb.UUID to values of type T.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a collection of uuidpb.UUID values.
func NewSet ¶
NewSet creates a new set containing the given uuidpb.UUID values.
func (*Set) DapperString ¶
DapperString implements github.com/dogmatiq/dapper.Stringer.
func (*Set) Delete ¶
Delete removes the given uuidpb.UUID from the set.
func (*Set) Delta ¶
Delta returns the elements that need to be added to and removed from s to make it equal to x.
This is equivalent to calling s.Diff(x) for the remove set and x.Diff(s) for the add set.
func (*Set) Has ¶
Has reports whether the set contains the given uuidpb.UUID.
Click to show internal directories.
Click to hide internal directories.