VersionStandard class base
standard version with fixed keys and 1 byte fields, for common use. flexible keys and field sizes can be implemented with VersionConstruct.
- Inheritance
-
- Object
- WordBase<
Version< VersionFieldStandard> , VersionFieldStandard> - Version<
VersionFieldStandard> - VersionStandard
Constructors
- VersionStandard(int optional, int major, int minor, int fix, {String? name = 'Version'})
-
const
- VersionStandard.value(int value, {String? name = 'Version'})
-
const
-
VersionStandard.withData(WordStruct<
VersionFieldStandard> data, {String? name = 'Version'}) -
const
Properties
- bits → Bits
-
no setterinherited
- byteLength → int
-
no setterinherited
-
data
→ StructData<
VersionFieldStandard, int> -
Proxy to allow the same keys
Object as StructData<K, V> data passed to Keys
no setterinherited
-
entries
→ Iterable<
MapEntry< VersionFieldStandard, int> > -
The map entries of this Map.
no setterinherited
-
fields
→ Iterable<
StructField< VersionFieldStandard, int> > -
no setterinherited
- fix → int
-
order by default, size determined by key type, T.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether there is no key/value pair in the map.
no setterinherited
- isNotEmpty → bool
-
Whether there is at least one key/value pair in the map.
no setterinherited
-
keys
→ List<
VersionFieldStandard> -
The keys of this Map.
no setteroverride
- labelPair → (String, String)
-
no setterinherited
- length → int
-
The number of key/value pairs in the map.
no setterinherited
- major → int
-
no setteroverride
- minor → int
-
no setteroverride
- name → String?
-
final
-
numbers
→ List<
int> -
alias
no setterinherited
- optional → int
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
int> -
no setterinherited
-
word
→ WordStruct<
VersionFieldStandard> -
finalinherited
Methods
-
addAll(
Map< VersionFieldStandard, int> other) → void -
Adds all key/value pairs of
otherto this map.inherited -
addEntries(
Iterable< MapEntry< newEntries) → voidVersionFieldStandard, int> > -
Adds all key/value pairs of
newEntriesto this map.inherited -
cast<
RK, RV> () → Map< RK, RV> -
Provides a view of this map as having
RKkeys andRVinstances, if necessary.inherited -
clear(
) → void -
Removes all entries from the map.
inherited
-
containsKey(
Object? key) → bool -
Whether this map contains the given
key.inherited -
containsValue(
Object? value) → bool -
Whether this map contains the given
value.inherited -
copyWith(
{int? optional, int? major, int? minor, int? fix, String? name}) → VersionStandard -
copyWithData(
WordStruct< VersionFieldStandard> data, {String? name}) → VersionStandard -
override
-
field(
VersionFieldStandard key) → StructField< VersionFieldStandard, int> -
inherited
-
fieldAs<
R> (Field< R> key) → StructField<Field< R> , R> -
inherited
-
fieldOrNull(
VersionFieldStandard key) → int? -
inherited
-
forEach(
void action(VersionFieldStandard key, int value)) → void -
Applies
actionto each key/value pair of the map.inherited -
map<
K2, V2> (MapEntry< K2, V2> transform(VersionFieldStandard key, int value)) → Map<K2, V2> -
Returns a new map where all entries of this map are transformed by
the given
convertfunction.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent(
VersionFieldStandard key, int ifAbsent()) → int -
Look up the value of
key, or add a new entry if it isn't there.inherited -
remove(
covariant VersionFieldStandard key) → int -
Removes
keyand its associated value, if present, from the map.inherited -
removeWhere(
bool test(VersionFieldStandard key, int value)) → void -
Removes all entries of this map that satisfy the given
test.inherited -
toJson(
) → Map< String, Object> -
Json
pass keys or alternatively implement in
List<K>keys extensioninherited -
toJsonAsEntry(
) → MapEntry< String, Object> -
inherited
-
toJsonVerbose(
) → Map< String, Object> -
inherited
-
toMap(
) → Map< VersionFieldStandard, int> -
Snapshot as an IndexMap. If
K extends Enum, call.toJson()on the result to serialise via EnumMapByName.inherited -
toMapEntryByName(
) → MapEntry< String, int> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toStringAsVersion(
[String left = '', String right = '', String separator = '.']) → String -
msb first with dot separator
optional.major.minor.fixinherited -
toStringAsVersionEntry(
[String left = '', String right = '', String separator = '.']) → MapEntry< String, String> -
inherited
-
trySetField(
VersionFieldStandard key, int value) → bool -
inherited
-
update(
VersionFieldStandard key, int update(int value), {int ifAbsent()?}) → int -
Updates the value for the provided
key.inherited -
updateAll(
int update(VersionFieldStandard key, int value)) → void -
Updates all values.
inherited
-
withField(
VersionFieldStandard key, int value) → Version< VersionFieldStandard> -
inherited
-
withFields(
Iterable< StructField< fields) → Version<VersionFieldStandard, int> >VersionFieldStandard> -
inherited
-
withMap(
Map< VersionFieldStandard, int> map) → Version<VersionFieldStandard> -
inherited
Operators
-
operator <(
Version< WordField< other) → boolNativeType> > -
inherited
-
operator <=(
Version< WordField< other) → boolNativeType> > -
inherited
-
operator ==(
covariant Version< VersionFieldStandard> other) → bool -
The equality operator.
inherited
-
operator >(
Version< WordField< other) → boolNativeType> > -
inherited
-
operator >=(
Version< WordField< other) → boolNativeType> > -
inherited
-
operator [](
covariant VersionFieldStandard key) → int -
inherited
-
operator []=(
covariant VersionFieldStandard key, int value) → void -
inherited