WithId<I> class abstract

Anything with an ID.

Implementers

Constructors

WithId()

Properties

hashCode int
The hash code for this object.
no setterinherited
id → I
The ID.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getById<I, T extends WithId<I>>(Iterable<T> items, I id) → T?
Finds an item with a given id.
getByIds<I, T extends WithId<I>>(Iterable<T> items, Iterable<I> ids) Iterable<T>
Finds items with given ids.
getIds<I>(Iterable<WithId<I>> items) Iterable<I>
Returns an Iterable with id of each item.
mapByIds<I, T extends WithId<I>>(Iterable<T> items) Map<I, T>
Returns a LinkedHashMap with all items mapped by id.