Concepts class

Inheritance
Available Extensions

Constructors

Concepts()

Properties

concept Concept
getter/setter pairinherited
count int
no setterinherited
exceptions ValidationExceptions
getter/setter pairinherited
first Concept
The first element.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
internalList List<Concept>
no getterinherited
isEmpty bool
Whether this collection has no elements.
no setterinherited
isNotEmpty bool
Whether this collection has at least one element.
no setterinherited
iterator Iterator<Concept>
A new Iterator that allows iterating the elements of this Iterable.
no setterinherited
last Concept
The last element.
no setterinherited
length int
The number of elements in this.
no setterinherited
maxc String
getter/setter pairinherited
minc String
getter/setter pairinherited
post bool
getter/setter pairinherited
pre bool
getter/setter pairinherited
propagateToSource bool
getter/setter pairinherited
randomGen Random
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
single Concept
Checks that this iterable has only one element, and returns that element.
no setterinherited
source Entities<Concept>?
getter/setter pairinherited

Methods

add(Concept entity) bool
inherited
addFrom(Entities<Concept> entities) bool
inherited
any(bool f(Concept entity)) bool
Checks whether any element of this iterable satisfies test.
inherited
at(int index) Concept
inherited
cast<T>() Iterable<T>
A view of this iterable as an iterable of R instances.
inherited
clear() → void
inherited
contains(Object? entity) bool
Whether the collection contains an element equal to element.
inherited
copy() Entities<Concept>
Copies the entities. It is not a deep copy.
inherited
display({String title = 'Entities', String prefix = '', bool withOid = true, bool withChildren = true, bool withInternalChildren = true}) → void
Displays (prints) a title, then entities.
inherited
displayCodeMap() → void
inherited
displayIdMap() → void
inherited
displayOidMap() → void
inherited
elementAt(int index) Concept
Returns the indexth element.
inherited
every(bool f(Concept entity)) bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> toElements(Concept element)) Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool f(Concept entity), {Concept orElse()?}) Concept
The first element that satisfies the given predicate test.
inherited
firstWhereAttribute(String code, Object attribute) Concept
inherited
fold<T>(T initialValue, T combine(T previousValue, Concept element)) → T
'Entities.fold' ('dynamic Function(dynamic, dynamic Function(dynamic, E))') 'Iterable.fold' ('T Function
inherited
followedBy(Iterable<Concept> other) Iterable<Concept>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void action(Concept element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
fromJson(String entitiesJson) → void
inherited
fromJsonList(dynamic entitiesList, [Entity<Entity>? internalParent]) → void
Loads entities without validations to this, which must be empty.
inherited
integrate(IEntities<Concept> fromEntities) → void
inherited
integrateAdd(IEntities<Concept> addEntities) → void
inherited
integrateRemove(IEntities<Concept> removeEntities) → void
inherited
integrateSet(IEntities<Concept> setEntities) → void
inherited
internalChild(Oid oid) Entities<Entity>?
inherited
internalSingle(Oid oid) Entity<Entity>?
inherited
isValid(Concept entity) bool
inherited
join([String separator = '']) String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool f(Concept entity), {Concept orElse()?}) Concept
The last element that satisfies the given predicate test.
inherited
map<T>(T f(Concept)) Iterable<T>
The current elements of this iterable modified by toElement.
inherited
newEntities() Entities<Concept>
inherited
newEntity() Entity<Concept>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
order([int compare(Concept a, Concept b)?]) Entities<Concept>
If compare function is not passed, compareTo method will be used. If there is no compareTo method on specific entity, the Entity.compareTo method will be used (code if not null, otherwise id).
inherited
postAdd(Concept entity) bool
inherited
postRemove(Concept entity) bool
inherited
preRemove(Concept entity) bool
inherited
random() Concept
inherited
reduce(Concept combine(Concept value, Concept entity)) Concept
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
remove(Concept entity) bool
inherited
removeFrom(Entities<Concept> entities) bool
inherited
selectWhere(bool f(Concept)) Entities<Concept>
inherited
selectWhereAttribute(String code, Object attribute) Entities<Concept>
inherited
selectWhereParent(String code, IEntity<IEntity> parent) Entities<Concept>
inherited
setAttributesFrom(Entities<Concept> entities) bool
inherited
singleWhere(bool f(Concept entity), {Concept orElse()?}) Concept
The single element that satisfies test.
inherited
singleWhereAttributeId(String code, Object attribute) Concept?
inherited
singleWhereCode(String? code) Concept?
inherited
singleWhereId(Id id) Concept?
inherited
singleWhereOid(Oid oid) Concept?
inherited
skip(int n) Iterable<Concept>
'Entities.firstWhere' ('E Function(bool Function(E), {E Function() orElse})')
inherited
skipFirst(int n) Entities<Concept>
inherited
skipFirstWhile(bool f(Concept entity)) Entities<Concept>
inherited
skipWhile(bool f(Concept entity)) Iterable<Concept>
Creates an Iterable that skips leading elements while test is satisfied.
inherited
sort([int compare(Concept a, Concept b)?]) → void
If compare function is not passed, compareTo method will be used. If there is no compareTo method on specific entity, the Entity.compareTo method will be used (code if not null, otherwise id).
inherited
take(int n) Iterable<Concept>
Creates a lazy iterable of the count first elements of this iterable.
inherited
takeFirst(int n) Entities<Concept>
inherited
takeFirstWhile(bool f(Concept entity)) Entities<Concept>
inherited
takeWhile(bool f(Concept entity)) Iterable<Concept>
Creates a lazy iterable of the leading elements satisfying test.
inherited
toJson() String
inherited
toJsonList() List<Map<String, Object>>
inherited
toList({bool growable = true}) List<Concept>
Creates a List containing the elements of this Iterable.
inherited
toSet() Set<Concept>
Creates a Set containing the same elements as this iterable.
inherited
toString() String
entity Returns a string that represents this entity by using oid and code.
inherited
update(Concept beforeEntity, Concept afterEntity) bool
Updates removes the before entity and adds the after entity, in order to update oid, code and id entity maps.
inherited
validateCardinality(bool isValid) bool
inherited
validateIncrementAndRequired(dynamic entity, bool isValid) bool
inherited
validateUnique(dynamic entity, bool isValid) bool
inherited
where(bool f(Concept entity)) Iterable<Concept>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

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