Empty<T> class
- Inheritance
- Available extensions
Constructors
- Empty()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBlank → bool
-
Available on OptionalString, provided by the OptionalStrings extension
no setter - isNotBlank → bool
-
Available on OptionalString, provided by the OptionalStrings extension
no setter - isPresent → bool
-
no setteroverride
- length → int
-
Available on OptionalList<
T> , provided by the OptionalLists extensionno setter - length → int
-
Available on OptionalString, provided by the OptionalStrings extension
no setter -
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
asEmpty(
) → Empty< T> -
inherited
-
asPresent(
) → Present< T> -
inherited
-
conditionally<
N> (bool _(Optional< T> ), Optional<N> __(Optional<T> )) → Empty<N> -
override
-
equals(
T value) → bool -
override
-
filter(
Predicate< T> _) → Empty<T> -
override
-
flatMap<
N> (Optional< N> _(T)) → Empty<N> -
override
-
fold<
R> (R initial, R reducer(R, T)) → Optional< R> -
Available on OptionalList<
T> , provided by the OptionalLists extension -
ifEmpty(
void action()) → Empty< T> -
override
-
ifPresent(
void _(T)) → Empty< T> -
override
-
join(
[String separator = ' ']) → OptionalString -
Available on OptionalList<
T> , provided by the OptionalLists extension -
map<
N> (N _(T)) → Empty< N> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optionally<
X, N> (Optional< X> optional, Optional<N> optionalTuple(Optional<T> , Optional<X> )) → Optional<N> -
inherited
-
orElse(
T supplier()) → T -
override
-
orElseGet(
T value) → T -
override
-
orThrow(
Exception exception) → T -
override
-
reduce(
T reducer(T, T)) → Optional< T> -
Available on OptionalList<
T> , provided by the OptionalLists extension -
run(
void action(Empty< T> )) → Empty<T> -
override
-
split(
Pattern pattern) → OptionalList< String> -
Available on OptionalString, provided by the OptionalStrings extension
-
toList(
) → List< T> -
inherited
-
toSet(
) → Set< T> -
inherited
-
toString(
) → String - A string representation of this object.
-
trim(
) → OptionalString -
Available on OptionalString, provided by the OptionalStrings extension
Operators
-
operator *(
OptionalNum that) → OptionalNum -
Available on OptionalNum, provided by the OptionalNums extension
-
operator *(
int times) → OptionalString -
Available on OptionalString, provided by the OptionalStrings extension
-
operator +(
OptionalList< T> that) → OptionalList<T> -
Available on OptionalList<
T> , provided by the OptionalLists extension -
operator +(
OptionalNum that) → OptionalNum -
Available on OptionalNum, provided by the OptionalNums extension
-
operator +(
OptionalString that) → OptionalString -
Available on OptionalString, provided by the OptionalStrings extension
-
operator -(
OptionalNum that) → OptionalNum -
Available on OptionalNum, provided by the OptionalNums extension
-
operator /(
OptionalNum that) → OptionalNum -
Available on OptionalNum, provided by the OptionalNums extension
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ~/(
OptionalNum that) → OptionalNum -
Available on OptionalNum, provided by the OptionalNums extension